Insights · Developer account

getBotUpdates

Read the updates queued for a bot

This method authenticates with your developer account. The easiest way to call it is the dashboard, which signs the request for you. Direct calls need a dashboard session cookie.

Owner-scoped raw update rows for one env, newest first. Payload is the same object the bot would receive via webhook/getUpdates.

Request

curl https://api.sprintelex.com/getBotUpdates \
  # authenticated with your dashboard session \
  -H "Content-Type: application/json" \
  -d '{"bot_id":"<bot-id>"}'

Parameters

NameTypeRequiredRules
bot_idstringYes-
envstringNo (default 'live')free-form string; filtered by equality against the env column
limitintegerNo (default 50)clamped to 1-200

Response

{ ok: true, result: { updates: [ { update_id, type, payload, webhook_attempts, delivered_webhook, created_at } ] } }

Rate limit: none in code

Errors

StatusErrorWhen
400bot_id is requiredmissing bot_id
404bot not foundno such bot, not owned by caller, or deleted
500could not load updatesDB query failed