# Bubble API to authenticate a user

**URL:** <https://forum.bubble.io/t/bubble-api-to-authenticate-a-user/331151>\
**Category:** APIs\
**Created:** [July 15, 2024, 7:21pm UTC](https://forum.bubble.io/t/bubble-api-to-authenticate-a-user/331151 "2024-07-15T19:21:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tylerboodman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tylerboodman/32/242142_2.png) [@tylerboodman](https://forum.bubble.io/u/tylerboodman)\
**Post date:** [July 15, 2024, 10:20pm UTC](https://forum.bubble.io/t/bubble-api-to-authenticate-a-user/331151/3 "2024-07-15T22:20:43Z")

</div>

You are on the right track with the login endpoint, check this post out: [Build a Rest API - #5 by chris.williamson1996](https://forum.bubble.io/t/build-a-rest-api/291113/5)

As a bonus if you want to log the user out after a custom duration (before 1 year) you can schedule the log out workflow for another date right after logging in.

---

_[View the full topic](https://forum.bubble.io/t/bubble-api-to-authenticate-a-user/331151)._
