Mint a short-lived token from this key
post/keys/tokens
Mint a short-lived token from this key: at most its scopes, minutes to live, no key management.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
keys:write- Sdk
keys.token.create- Cli
keys token create- Events
keys.token.minted
Request bodyapplication/json, required
- scopeslist of string
- ttlSecondsintegerAt least 60. At most 3600.
- allowedOriginslist of string
- ipAllowlistlist of string
- rpmLimitintegerAt least 1. At most 100000.
- subjectstringAt most 120 characters.
Responses
- 201application/jsonSuccess
- tokenstringrequired
- token_typeBearerrequired
- expires_innumberrequired
- expires_atstringrequired
- scopeslist of stringrequired
- key_idstringrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring