API keys
API keys of the current user. The plaintext key is returned only once at creation, and scopes can be limited per domain.
api-keysUser accountsAuthentication: User4 endpointsList API keys
GET
/api/v2/api-keysAuthentication: User
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
| page | integer | — | Page number, starting from 1 |
| page_size | integer | — | Items per page |
| sort | string | — | Sort fields, comma-separated; prefix `-` for descending, e.g. `-created_at,id` |
Create API key
POST
/api/v2/api-keysAuthentication: User
Request body application/json
| Field | Type | Required | Description |
|---|---|---|---|
| allow_ips | ApiKeyAllowIps | — | Caller IP allowlist (single IPs only, at most 200); empty means no restriction. Calls from other IPs get 401 as invalid credentials |
| expires_at | string | — | Expires at |
| name | string | Required | Name |
| scopes | string[] | Required | Granted scopes, same values as scopes at creation |
Update API key IP allowlist or reset it
PUT
/api/v2/api-keys/{id}Authentication: User
Request body application/json
| Field | Type | Required | Description |
|---|---|---|---|
| allow_ips | ApiKeyAllowIps | — | Caller IP allowlist (single IPs only, at most 200); empty means no restriction. Calls from other IPs get 401 as invalid credentials |
| reset | boolean | — | When true, issue a new key; the old one stops working at once |
Delete API key
DELETE
/api/v2/api-keys/{id}Authentication: User
API keys object
| Field | Type | Required | Description |
|---|---|---|---|
| allow_ips | ApiKeyAllowIps | — | Caller IP allowlist (single IPs only, at most 200); empty means no restriction. Calls from other IPs get 401 as invalid credentials |
| created_at | string | — | Created at |
| expires_at | string | — | Expires at |
| id | integer | — | Record ID |
| last_used_at | string | — | Time of last use; null if never used |
| name | string | — | Name |
| prefix | string | — | First few characters of the plaintext key, for recognition |
| reset | boolean | — | When true, issue a new key; the old one stops working at once |
| scopes | string[] | — | Granted scopes, same values as scopes at creation |
| secret | string | — | Plaintext key (the X-API-Key value), returned only once at creation; only a hash is stored |
| updated_at | string | — | Updated at |