SDK — Messages

Send a message (send_message)

Send a message from the agent to a user on telegram, email, or sms.

post/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

Request body

channel'telegram' | 'email' | 'sms' required
externalChatIdstring required

Telegram chat ID, email address, or phone number

conversationIdstring

Example request

{
  "content": {
    "type": "text",
    "text": "Hello!"
  }
}

Response

Message queued

statusstring

Example response

{
  "status": "sent"
}

Changes

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