API Keys

Manage API keys for programmatic access.

Endpoints

Method
Path
Description

GET

/v1/api-keys

List API keys

POST

/v1/api-keys

Create API key

DELETE

/v1/api-keys/:id

Delete API key

POST

/v1/api-keys/:id/rotate

Rotate API key


List API Keys

GET /v1/api-keys
curl https://rest-api.tokenbot.com/v1/api-keys \
  -H "X-API-Key: tb_live_your_key"

Create API Key

POST /v1/api-keys

Returns the full key only once — store it securely.

curl -X POST https://rest-api.tokenbot.com/v1/api-keys \
  -H "X-API-Key: tb_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"name":"CI/CD Key"}'

Delete API Key


Rotate API Key

Generates a new key value. The old key is immediately invalidated.

Last updated

Was this helpful?