API Tokens
Create API token
Changed onGenerates 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.
post/api/api-tokens
Request
- Base URLhttps://localhost:1852
- URLhttps://localhost:1852/api/api-tokens
- AuthHTTP bearer
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
- info
added the new
observe-onlyenum value to the request property
- info
- info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status - info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status - info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status - info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status
- info