Skip to main content
GET
/
api
/
bots
/
validate
Validate a bot token
curl --request GET \
  --url http://localhost:8080/api/bots/validate \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "is_bot": true,
  "first_name": "<string>",
  "username": "<string>"
}

Authorizations

Authorization
string
header
required

API key with bmx_ prefix. Obtain via /api/auth/api-keys.

Query Parameters

token
string
required

Telegram bot token to validate

Response

Token is valid

Telegram User object for the bot

id
integer
is_bot
boolean
Example:

true

first_name
string
username
string