Issues a session token for user authentication.
Note: The
/users/{user_id}
endpoint is deprecated and replaced with/users/{user_id}/token
endpoint for greater efficiency.
The following table shows a parameter that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
user_id | string | Specifies the unique ID of the user. |
The following table shows a property of the HTTP request that this action supports.
Optional
Name | Type | Description |
---|---|---|
expires_at | long | Specifies the expiration time of the new session token, in Unix milliseconds |
If successful, this action returns a user resource in the response body.
Name | Type | Description |
---|---|---|
token | string | A user's session token generated by the |
In the case of an error, an error object is returned. A detailed list of error codes is available here.