SDK — Messages

Poll inbound messages (check_messages)

Returns recent inbound messages across all channels. Used by agents on a polling loop.

get/sdk/agents/{agentId}/messages

Request

  • Base URL: https://api.agentbrink.com/api
  • URL: https://api.agentbrink.com/api/sdk/agents/{agentId}/messages
  • Auth: HTTP bearer

Query parameters

limitinteger

Max messages to return

sincestring date-time

Return messages after this timestamp

Response

Array of messages

_idstring
agentIdstring
channel'telegram' | 'email' | 'sms' | 'webhook'
direction'inbound' | 'outbound'
externalChatIdstring
conversationIdstring
status'pending' | 'delivered' | 'failed'
createdAtstring date-time

Example response

[
  {
    "content": {
      "type": "text"
    }
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.