Create API token
Create API token
POST
/v2/tokensFeatures
Send the token in the Authorization: Bearer API_TOKEN header. See Tokens for which token types this endpoint accepts.
Input6
Sent from your browser straight to the API — never to Docsbook, never stored.
Description of the token
Expiration date of the token (ISO 8601 format)
Name of the token
Show child attributes15
Annotations capability
API tokens capability
Audit Log capability
Billing capability
Dashboards capability
Datasets capability
Endpoints capability
Flows capability
Integrations capability
Monitors capability
Notifiers capability
Access control capability
Shared access keys capability
Users capability
Views capability
Output8
Description of the token
ID of the token
Name of the token
Show child attributes15
Annotations capability
API tokens capability
Audit Log capability
Billing capability
Dashboards capability
Datasets capability
Endpoints capability
Flows capability
Integrations capability
Monitors capability
Notifiers capability
Access control capability
Shared access keys capability
Users capability
Views capability
Responses
200CreateApiTokenResponse
Example input
curl -X POST 'https://api.axiom.co/v2/tokens' \
-H 'Authorization: Bearer API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"name":"string"}'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"
}