---
title: "Create user token"
method: POST
path: "/v3/users/{user_id}/token"
tags: ["User"]
---

# Create user token

`POST /v3/users/{user_id}/token`

## Request

- Base URL: `https://api-APP_ID.sendbird.com`
- URL: `https://api-APP_ID.sendbird.com/v3/users/{user_id}/token`
- Auth: none declared

## Create user token

This action issues a session token for user authentication. Session tokens provide an efficient stateless authentication method by not storing the tokens in the Sendbird database, and thus improving the server's performance. See [access token vs. session token](https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#2-access-token-vs-session-token) to learn more about authenticating users.

> **Note**: The endpoint `/users/{user_id}` is deprecated. Use `/users/{user_id}/token` for greater efficiency. 
  

https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token#1-issue-a-session-token

## Path parameters

- `user_id` string, required

## Headers

- `api-token` string

## Request body

- CreateUserTokenRequest
  - `expires_at` integer

## Response `200`

Successful response

- CreateUserTokenResponse
  - `expires_at` integer
  - `token` string

## Changes

- **2025-07-27** `7a85bad03e90`: 1 breaking, 1 warning, 1 info
  - the `expires_at` request property type changed from `number` to `integer`, and format from no format to `int64`
  - deleted the `header` request parameter `Api-Token`
  - added the new optional `header` request parameter `api-token`
- **2023-11-10** `135d8b0705d4`: 1 info
  - the `header` request parameter `Api-Token` became optional
- **2022-10-10** `45e2df0efd62`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sendbird/apis/sendbird-platform-sdk/changes/v3/users/:user_id/token/post.md)

---

[API](https://skmtc.dev/sendbird/apis/sendbird-platform-sdk.md) - [All operations](https://skmtc.dev/sendbird/apis/sendbird-platform-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/sendbird/apis/sendbird-platform-sdk/revisions/9e53a5288df0?raw)
