Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
string
required

The user for which the token represents authentication.

Example:

"usr_01jymgdfrpec2asc5m0z3a6fr9"

Body

application/json

A request to create a token

duration_seconds
integer

For how many seconds the token should be accepted. Defaults to 15 minutes.

Required range: 15 <= x <= 3600
Example:

900

Response

Created token

Response when token has been created successfully

token
string

The created token.