Create API token
Generates a new scoped API token. The full token is only returned in the creation response and cannot be retrieved again. Requires admin role.
Note: API tokens cannot create other API tokens.
Request body
Example request
{
"name": "CI/CD Deploy Token",
"expires_in": 90
}Response
Token created. The token field contains the full JWT. Save it now; it will not be shown again.
Changes
Changed in 3 of the 36 revisions of this API.38
- ○
removed the
ADMIRAL_REQUIREDenum value from thecoderesponse property for the response status400response-property-enum-value-removed
- ○
removed the
ADMIRAL_REQUIREDenum value from thecoderesponse property for the response status403response-property-enum-value-removed
- ○
removed the
ADMIRAL_REQUIREDenum value from thecoderesponse property for the response status409response-property-enum-value-removed
- ○
removed the
ADMIRAL_REQUIREDenum value from thecoderesponse property for the response status500response-property-enum-value-removed
- ○
- ○
added the non-success response with the status
409response-non-success-status-added
- ○
- ●
added the new
PAID_REQUIREDenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
added the new
PAID_REQUIREDenum value to thecoderesponse property for the response status403response-property-enum-value-added
- ●
added the new
PAID_REQUIREDenum value to thecoderesponse property for the response status500response-property-enum-value-added
- ○
removed the
PRO_REQUIREDenum value from thecoderesponse property for the response status400response-property-enum-value-removed
- ○
removed the
PRO_REQUIREDenum value from thecoderesponse property for the response status403response-property-enum-value-removed
- ○
removed the
PRO_REQUIREDenum value from thecoderesponse property for the response status500response-property-enum-value-removed
- ●