API reference

The Bot API is RPC-style: every method is a POST to https://api.sprintelex.com/{method} with a JSON body. Bot methods authenticate with a bot token; management methods authenticate with your developer account.

Authentication

Bot token

For getMe, sendMessage, getUpdates, and the webhook methods. Pass it as a bearer token, or in the path:

curl
curl https://api.sprintelex.com/getMe \
  -H "Authorization: Bearer <bot-token>"

Developer account

For bot management (create, tokens, groups, insights): sign in on the dashboard, which calls these methods for you. Calling them directly requires a session and is only documented for completeness.

Envelopes

Success answers { ok: true, result: { ... } }. Failure answers { ok: false, error: "..." } with an HTTP status: 400 for bad input, 401 for bad auth, 403 for blocked or suspended bots, 404 for unknown ids, 429 for rate limits.

Bot API

Called with a bot token. These are the methods your bot uses at runtime.

Bots

Called with your developer account: create and manage bots.

Tokens

Inspect and rotate the tokens each bot holds.

Groups

Put bots in groups and control what they can see.

People

Threads with users, blocking, and abuse reports.

Insights

Read history and measure what your bot is doing.