Skip to main content
POST
Send Group Message

Sending Group Messages:

  • The agent’s phone number must first be added to the group chat before messages can be sent.
  • You’ll need the thread_id of the group chat to send messages. This is provided when you create a group or in webhook events.

Example Request

Text Message to Group

Media Message to Group

To send a document to a group:

Using the Universal Endpoint for Groups

You can also use the newer universal endpoint for group messages:

Important Notes for Group Media Messages

  • For group messages, you need a valid thread_id instead of a to number.
  • The caption field is optional. You can send media without a caption if desired.
  • The same media type and size restrictions apply as with individual messages:
    • Images: Generally up to 5MB
    • Videos: Generally up to 16MB
    • Audio: Generally up to 16MB
    • Documents: Generally up to 100MB
  • The agent must be a member of the group before sending messages.

Authorizations

X-API-Key
string
header
required
X-API-Secret
string
header
required

Headers

X-API-Key
string
required
X-API-Secret
string
required

Path Parameters

accountId
string
required

Body

application/json
content
string
required

Message body text

from
string
required

Sender phone number

thread_id
string
required

ID of the chat thread

service
enum<string>
required

Messaging service to use

Available options:
whatsapp,
telegram
attachment_uri
string

Optional file/media attachment

Response

Message sent successfully

chat_group_id
string
from
string
body
string
status
enum<string>
Available options:
queued,
sent
date_created
string<date-time>