Tokens
Create a signed user token
Changed onProvides a mechanism for having Surge create a signed token for embeds instead of signing with your own signing key.
post/users/{user_id}/tokens
Request
- Base URLhttps://api.surge.app
- URLhttps://api.surge.app/users/{user_id}/tokens
- AuthHTTP bearer
Path parameters
user_idstring required
The user for which the token represents authentication.
Example:usr_01jymgdfrpec2asc5m0z3a6fr9
Request body
Example request
{
"duration_seconds": 900
}Response
Created token
Example response
{
"token": "header.payload.signature"
}Changes
- info
added the new optional request property
- info