Create API token
Creates an API token and returns its secret token value, which you can't retrieve again. You can only grant capabilities you have yourself. If you omit expiresAt, the token doesn't expire.
Body
application/json| Property | Type | Description |
|---|---|---|
dataset | object | |
description | string | Description of the token |
expires | string | Expiration date of the token (ISO 8601 format) |
name | stringRequired | Name of the token |
org | object | |
annotations | string[] | Annotations capability |
api | string[] | API tokens capability |
audit | string[] | Audit Log capability |
billing | string[] | Billing capability |
dashboards | string[] | Dashboards capability |
datasets | string[] | Datasets capability |
endpoints | string[] | Endpoints capability |
integrations | string[] | Integrations capability |
labels | string[] | Labels capability |
monitors | string[] | Monitors capability |
notifiers | string[] | Notifiers capability |
rbac | string[] | Access control capability |
shared | string[] | Shared access keys capability |
users | string[] | Users capability |
views | string[] | Views capability |
view | object |
Request
Try itRun this request against your Axiom organization
Credentials stay in this browser tab and are only sent to Axiom when you run the request.
Response
200Created API token, including its secret `token` value.400No capability set, an invalid capability, or a capability the caller doesn't have.