# Member API with magic link

**URL:** <https://forum.ghost.org/t/member-api-with-magic-link/57765>\
**Category:** Integrations & API\
**Created:** [May 26, 2025, 10:47am UTC](https://forum.ghost.org/t/member-api-with-magic-link/57765 "2025-05-26T10:47:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hieu\_Nguyen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hieu_nguyen/32/35297_2.png) [@Hieu\_Nguyen](https://forum.ghost.org/u/Hieu_Nguyen)\
**Post date:** [May 26, 2025, 10:47am UTC](https://forum.ghost.org/t/member-api-with-magic-link/57765/1 "2025-05-26T10:47:04Z")

</div>

Is it possible to get jwt token after sending magic link ?  
it means when performing HTTP POST API send-magic-link, we can perform api to get jwt token.

I’m seeing there is a way to get token like this: [Ghost/ghost/core/test/e2e-api/members/signin.test.js at main · TryGhost/Ghost · GitHub](https://github.com/TryGhost/Ghost/blob/main/ghost/core/test/e2e-api/members/signin.test.js)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [May 26, 2025, 11:32am UTC](https://forum.ghost.org/t/member-api-with-magic-link/57765/2 "2025-05-26T11:32:31Z")

</div>

there’s a signin\_urls endpoint that’ll get you the necessary token.

---

<div class="post-metadata">

**Author:** ![Hieu\_Nguyen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hieu_nguyen/32/35297_2.png) [@Hieu\_Nguyen](https://forum.ghost.org/u/Hieu_Nguyen)\
**Post date:** [May 26, 2025, 2:22pm UTC](https://forum.ghost.org/t/member-api-with-magic-link/57765/3 "2025-05-26T14:22:34Z")

</div>

Thank you.  
yes signin\_url can be received via email, but is there anyway to get the url from api ?

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [May 26, 2025, 2:23pm UTC](https://forum.ghost.org/t/member-api-with-magic-link/57765/4 "2025-05-26T14:23:12Z")

</div>

Yes. There’s an endpoint that returns it :)

---

<div class="post-metadata">

**Author:** ![Hieu\_Nguyen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hieu_nguyen/32/35297_2.png) [@Hieu\_Nguyen](https://forum.ghost.org/u/Hieu_Nguyen)\
**Post date:** [May 27, 2025, 3:32am UTC](https://forum.ghost.org/t/member-api-with-magic-link/57765/5 "2025-05-27T03:32:42Z")

</div>

I found this one [Discord OAuth2 in Ghost](https://blog.pnly.io/oauth/)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [May 27, 2025, 10:17am UTC](https://forum.ghost.org/t/member-api-with-magic-link/57765/6 "2025-05-27T10:17:34Z")

</div>

That code looks to be outdated. It now takes token auth (I fixed it!), and user auth isn’t going to work now that the 2FA /device verification stuff is live. But yes, that’s the endpoint I meant. :)
