# How the hell do I login to the API?

**URL:** <https://community.homey.app/t/how-the-hell-do-i-login-to-the-api/28980>\
**Category:** Developers\
**Created:** [April 26, 2020, 9:33am UTC](https://community.homey.app/t/how-the-hell-do-i-login-to-the-api/28980 "2020-04-26T09:33:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bento1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bento1/32/24397_2.png) [@Bento1](https://community.homey.app/u/Bento1)\
**Post date:** [April 26, 2020, 9:33am UTC](https://community.homey.app/t/how-the-hell-do-i-login-to-the-api/28980/1 "2020-04-26T09:33:54Z")

</div>

I am trying to create a Siri Shortcut which calls an URL to open my curtains powered by a Brel motor. Homewizard massively failed at this so I bought the Homey a few weeks ago.

Now, by pulling the token from the Homey Developer portal I managed to open/close the curtains by calling my local Homey IP with that token. But that token will obviously expire at some point.

So how would I obtain a new token from my Homey? I don’t need it to work over the internet, just on my local network.

It baffles me there is no official documentation on this to be honest ☹

---

<div class="post-metadata">

**Author:** ![Osorkon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/osorkon/32/43026_2.png) [@Osorkon](https://community.homey.app/u/Osorkon)\
**Post date:** [April 26, 2020, 10:21am UTC](https://community.homey.app/t/how-the-hell-do-i-login-to-the-api/28980/2 "2020-04-26T10:21:30Z")

</div>

To execute Flows via siri Schortcuts I use webhooks. Works great.

---

<div class="post-metadata">

**Author:** ![PetervdK](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/petervdk/32/20669_2.png) [@PetervdK](https://community.homey.app/u/PetervdK)\
**Post date:** [April 26, 2020, 10:46am UTC](https://community.homey.app/t/how-the-hell-do-i-login-to-the-api/28980/3 "2020-04-26T10:46:36Z")

</div>

Strong first topic title… 🤔

With API i assume you mean Homey’s API? Didn’t you already manage that by pulling the token?

Also i don’t really understand the question how you should do that the next time…Is there any reason to assume that the same method will not work the next time?

Besides that, i am just curious, what official documentation do you mean and from who? Brel? Siri/Apple? Athom? Some web standard authority?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [April 26, 2020, 12:08pm UTC](https://community.homey.app/t/how-the-hell-do-i-login-to-the-api/28980/4 "2020-04-26T12:08:55Z")

</div>

I assume you mean the “webhook” mechanism that’s offered by the Logic flow cards (“A webhook was received”)?

---

<div class="post-metadata">

**Author:** ![Osorkon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/osorkon/32/43026_2.png) [@Osorkon](https://community.homey.app/u/Osorkon)\
**Post date:** [April 26, 2020, 12:10pm UTC](https://community.homey.app/t/how-the-hell-do-i-login-to-the-api/28980/5 "2020-04-26T12:10:03Z")

</div>

> [@robertklep](#):
>
> the “webhook” mechanism that’s offered by the Logic flow cards (“A webhook was received”)?

👍

---

<div class="post-metadata">

**Author:** ![Bento1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bento1/32/24397_2.png) [@Bento1](https://community.homey.app/u/Bento1)\
**Post date:** [April 26, 2020, 2:03pm UTC](https://community.homey.app/t/how-the-hell-do-i-login-to-the-api/28980/6 "2020-04-26T14:03:05Z")

</div>

So you’re saying the token does not expire? Seems odd.

Anyway, I didn’t realize I could use a webhook so I’ll look into that, must be quite a bit easier too.
