Tokens · Developer account
getTokenStatus
Check which token environments are active
This method authenticates with your developer account. The easiest way to call it is the dashboard, which signs the request for you. Direct calls need a dashboard session cookie.
Lists token rows for both envs (newest first per env ordering). token_hash is deliberately never selected or returned.
Request
curl https://api.sprintelex.com/getTokenStatus \
# authenticated with your dashboard session \
-H "Content-Type: application/json" \
-d '{"bot_id":"<bot-id>"}'Parameters
| Name | Type | Required | Rules |
|---|---|---|---|
| bot_id | string | Yes | - |
Response
{ ok: true, result: { tokens: [ { env, label, created_at, revoked_at (null = active), last_used_at } ] } }Rate limit: none in code
Errors
| Status | Error | When |
|---|---|---|
| 400 | bot_id is required | missing bot_id |
| 404 | bot not found | no such bot, not owned by caller, or deleted |
| 500 | could not read token status | DB query failed |