Create a signed user token

Provides a mechanism for having Surge create a signed token for embeds instead of signing with your own signing key.

Path parameters

user_idstringRequired
The user for which the token represents authentication.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

Token request
duration_secondsintegerOptional>=15<=3600
For how many seconds the token should be accepted. Defaults to 15 minutes.

Response

Token created
tokenstring or null
The created token.