Skip to main content
POST
Send a message to a group

Authorizations

apiKey
string
header
required

API key from Settings → API keys.

apiSecret
string
header
required

Secret shown once when the API key is created.

Path Parameters

accountId
string
required

Your Gallabox account ID. Must be the API key's own account. A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

groupId
string
required

ID of the group. A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

Query Parameters

channelId
string
required

ID of the channel. GET /channels lists them. A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

Body

application/json

The message, in the same shape as the whatsapp object of Send a WhatsApp message: type plus the object for that type. Templates go to Send a template to a group.

type
string
required

The message type, for example text or image. Not template.

Minimum string length: 1
localMessageId
string

Your own reference for the message.

Minimum string length: 1

Response

The message is being sent.

status
enum<string>
required
Available options:
ACCEPTED
data
object