Skip to content

Rotate the token

POST
/bot/token
curl --request POST \
--url https://play-api.jc.id.lv/bot/token \
--header 'Authorization: Bearer <token>'

Swaps the caller’s Bearer token; the old one stops authenticating immediately, the new one is shown once. Registered bots only.

Fresh token.

Media typeapplication/json
object
token
required
string
Examplegenerated
{
"token": "example"
}

Caller is anonymous (re-mint instead) or static (rotates via server env).