Rotate the token
POST
/bot/token
const url = 'https://play-api.jc.id.lv/bot/token';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Fresh token.
Media typeapplication/json
object
token
required
string
Examplegenerated
{ "token": "example"}Caller is anonymous (re-mint instead) or static (rotates via server env).