List API Keys
Retrieve all API keys for the authenticated user.Request
Response
Create API Key
Create a new API key.string
required
Name for the API key (e.g., “Production”, “Development”)
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl https://t0ken.ai/api/keys \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
{
"success": true,
"data": [
{
"id": 1,
"name": "Default",
"key": "omx_xxxxxxxxxxxxxxxxxxxxxxxx",
"is_active": true,
"created_at": "2026-02-13T10:00:00Z"
}
]
}
curl -X POST https://t0ken.ai/api/keys \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Production"
}'
{
"success": true,
"data": {
"id": 2,
"name": "Production",
"key": "omx_yyyyyyyyyyyyyyyyyyyyyyyy",
"is_active": true,
"created_at": "2026-02-13T10:00:00Z"
}
}
curl -X DELETE https://t0ken.ai/api/keys/2 \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
{
"success": true,
"message": "API key revoked successfully"
}
Was this page helpful?