User
Create user token
Changed onCreate 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 to learn more about authenticating users.
Note: The endpoint /users/{user_id} is deprecated. Use /users/{user_id}/token for greater efficiency.
post/v3/users/{user_id}/token
Request
- Base URLhttps://api-APP_ID.sendbird.com
- Authnone declared
Path parameters
user_idstring required
(Required)
Headers
api-tokenstring
Example:{{API_TOKEN}}
Request body
Response
Successful response
Example response
{
"expires_at": 0,
"token": "token"
}Changes
- breaking
the
request property type changed fromnumbertointeger, and format from no format toint64 - warning
deleted the
headerrequest parameterApi-Token - info
added the new optional
headerrequest parameterapi-token
- breaking
- info
the
headerrequest parameterApi-Tokenbecame optional
- info