Insights · Developer account

getBotMessages

Read a bot chat's message history

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 message log across all of the bot's threads (both envs), newest first. Each message carries its thread's env.

Request

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

Parameters

NameTypeRequiredRules
bot_idstringYes-
limitintegerNo (default 50)clamped to 1-200

Response

{ ok: true, result: { messages: [ { id, thread_id, sender_kind ('bot'|'user'), body, created_at, env ('live'|'test'|null) } ] } }

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 messagesDB query failed