Skip to main content
POST
/
api
/
tokens
Create API token
curl --request POST \
  --url http://aris.local/api/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Grafana Integration"
}
'
{
  "token": {
    "id": "tok_abc123",
    "name": "Grafana Integration",
    "token": "aris_tok_xxxxxxxxxxxxxxxxxxx",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Session token only (from PIN verification)

Body

application/json
name
string
required

Descriptive name for the token

Maximum string length: 100
Example:

"Grafana Integration"

Response

Token created

token
object