Current identity
GET
/bot/account
const url = 'https://play-api.jc.id.lv/bot/account';const options = {method: 'GET', 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 GET \ --url https://play-api.jc.id.lv/bot/account \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The caller’s identity.
Media typeapplication/json
object
team
required
string
name
required
string
id
required
string
Examplegenerated
{ "team": "example", "name": "example", "id": "example"}Missing, invalid, or expired Bearer token.