Skip to main content
POST
/
iam
/
auth
/
v1
/
tokens
cURL
curl --request POST \
  --url https://api.mottostreaming.com/iam/auth/v1/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expiration_seconds": "<string>",
  "resource_scope_keys": [
    "<string>"
  ]
}'
{
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
expiration_seconds
string

Token expiration in seconds. Minimum is 300 seconds (5 minutes), maximum is 86400*365 seconds (1 year). To create a non-expiring token, set the value to 0.

resource_scope_keys
string[]

This property restricts the created token's access only to resources that sit within the hierarchy/hierarchies defined by resource_scope_keys. Important: this does not give access to the resources by itself; it is a filter that is applied on top of the existing access rights of the account for which the token is being created.

Response

OK

token
string

Created token