Regenerate API token
cURL
curl --request POST \ --url https://api.axiom.co/v2/tokens/{id}/regenerate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "existingTokenExpiresAt": "2023-11-07T05:31:56Z", "newTokenExpiresAt": "2023-11-07T05:31:56Z" } '
{ "datasetCapabilities": {}, "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" ], "sharedAccessKeys": [ "read" ], "users": [ "create" ], "views": [ "create" ] }, "description": "<string>", "expiresAt": "2023-11-07T05:31:56Z", "samlAuthenticated": true, "viewCapabilities": {}, "token": "<string>" }
The access token received from the authorization server in the OAuth 2.0 flow.
Expiration date of the existing token (ISO 8601 format)
Expiration date of the new token (ISO 8601 format)
CreateAPITokenResponse
Show child attributes
ID of the token
Name of the token
Description of the token
Expiration date of the token (ISO 8601 format)
Was this page helpful?