# Session token set expires\_at

**URL:** <https://community.sendbird.com/t/session-token-set-expires-at/5374>\
**Category:** API\
**Created:** [August 22, 2022, 10:32pm UTC](https://community.sendbird.com/t/session-token-set-expires-at/5374 "2022-08-22T22:32:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![itsbeomy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/itsbeomy/32/2901_2.png) [@itsbeomy](https://community.sendbird.com/u/itsbeomy)\
**Post date:** [August 22, 2022, 10:32pm UTC](https://community.sendbird.com/t/session-token-set-expires-at/5374/1 "2022-08-22T22:32:47Z")

</div>

Hi!  
How do I set the expiration time for the session token?  
I want to set the expiration time to 1 hour, but I can’t find a way to set it.

And is there no way to delete a particular session token?

---

<div class="post-metadata">

**Author:** ![Ian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ian/32/2077_2.png) [@Ian](https://community.sendbird.com/u/Ian)\
**Post date:** [September 1, 2022, 3:24am UTC](https://community.sendbird.com/t/session-token-set-expires-at/5374/2 "2022-09-01T03:24:24Z")

</div>

Hello @itsbeomy, and welcome to the Sendbird community!

You can set `expires_at` to a UNIX timestamp in the request body when making a POST API request to the `/v3/users/{user_id}/token` endpoint. Please refer to the following docs page: [Platform API - Issue a session token](https://sendbird.com/docs/chat/v3/platform-api/user/managing-session-tokens/issue-a-session-token#2-request-body)

We do not have a way to delete specific session tokens, you can only revoke all session tokens for a specific user. Reference: [Platform API - Revoke all session tokens](https://sendbird.com/docs/chat/v3/platform-api/user/managing-session-tokens/revoke-all-session-tokens#1-revoke-all-session-tokens)
