Resources

API keys

.md

List and create API keys programmatically.

Manage the API keys of your workspace. Both endpoints require a key with admin permission. Revoking and deleting keys is only available from the dashboard (Settings > Developers); there is no API endpoint for it.

List API keysGET/v1/keys

Permission: admin. Returns every key of the workspace, newest first, including revoked ones. The full token is never returned in list responses. The list is not paginated.

FieldTypeDescription
idstringKey ID.
namestringDescriptive name.
key_prefixstringFirst characters of the token, to recognize the key.
permissionstringread, write or admin.
is_activebooleanfalse when the key has been revoked. Revoked keys are rejected with 401.
last_used_atstring | nullLast time the key was used.
created_atstringCreation date (ISO 8601).
response.json
JSON
01{
02 "data": [
03 {
04 "id": "...",
05 "name": "Production API",
06 "key_prefix": "sk_1a2b3c4d",
07 "permission": "write",
08 "is_active": true,
09 "last_used_at": "2026-10-12T18:30:00.000Z",
10 "created_at": "2026-09-01T10:00:00.000Z"
11 }
12 ],
13 "meta": { "total": 1 }
14}
UTF-8 · LF · JSONtickos.dev

Create an API keyPOST/v1/keys

Permission: admin. The new key belongs to the same workspace as the key making the request.

FieldTypeRequiredDescription
namestringYesDescriptive name for the key.
permissionstringYesread, write, or admin.
terminal
Bash
01curl https://api.tickos.dev/v1/keys \
02 -H 'Authorization: Bearer sk_your_api_key' \
03 -H 'Content-Type: application/json' \
04 -d '{ "name": "Production API", "permission": "write" }'
UTF-8 · LF · Bashtickos.dev

Returns 201 with id, name, token (the full sk_... key), key_prefix, permission, created_at and a warning reminder. Missing fields or an invalid permission return 400.

Save the token
The full API token (sk_...) is only shown in the creation response. It cannot be retrieved later. Store it securely.