Regenerate API token
Regenerate API token
POST
/v2/tokens/{id}/regenerateFeatures
Send the token in the Authorization: Bearer API_TOKEN header. See Tokens for which token types this endpoint accepts.
Input4
Sent from your browser straight to the API — never to Docsbook, never stored.
(path)
Expiration date of the existing token (ISO 8601 format)
Show child attributes6
Description of the token
Expiration date of the token (ISO 8601 format)
Name of the token
Expiration date of the new token (ISO 8601 format)
Output8
Description of the token
ID of the token
Name of the token
Responses
200CreateAPITokenResponse
Example input
curl -X POST 'https://api.axiom.co/v2/tokens/{id}/regenerate' \
-H 'Authorization: Bearer API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"existingTokenExpiresAt":"2024-01-01T00:00:00Z"}'Example output
{
"datasetCapabilities": {},
"description": "string",
"expiresAt": "2024-01-01T00:00:00Z",
"id": "string",
"name": "string",
"orgCapabilities": {
"annotations": [
"create"
],
"apiTokens": [
"create"
],
"auditLog": [
"read"
],
"billing": [
"read"
],
"dashboards": [
"create"
],
"datasets": [
"create"
],
"endpoints": [
"create"
],
"flows": [
"create"
],
"integrations": [
"create"
],
"monitors": [
"create"
],
"notifiers": [
"create"
],
"rbac": [
"create"
]
},
"samlAuthenticated": false,
"viewCapabilities": {},
"token": "string"
}