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

NameTypeRequiredRules
bot_idstringYes-

Response

{ ok: true, result: { tokens: [ { env, label, created_at, revoked_at (null = active), last_used_at } ] } }

Rate limit: none in code

Errors

StatusErrorWhen
400bot_id is requiredmissing bot_id
404bot not foundno such bot, not owned by caller, or deleted
500could not read token statusDB query failed