Skip to main content
POST

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

mode
enum<string>
required

sync waits until the message is stored; async queues it.

Available options:
sync,
async

Body

application/json
channelId
string
required

The WhatsApp channel to send from.

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

"6650a1b2c3d4e5f6a7b8c9d0"

recipient
object
required

Give phone or identifier.

category
enum<string>
required

Only Utility messages can be sent with Direct Send through the API.

Available options:
utility
body
string
required

The message text.

Required string length: 1 - 1024
header
object

Optional header: text or one media item.

Optional footer.

buttons
object

Up to 3 reply buttons and 2 link buttons.

direct_send_config
object

Options for the template Meta creates.

localMessageId
string

Your own reference; generated if omitted.

Maximum string length: 128

Response

The message was accepted. sync returns the Gallabox message id; async returns the localMessageId (yours, or one Gallabox generated). warnings lists anything in the request that was ignored.

For WhatsApp, running out of message credits doesn't fail the request. The message is saved but not sent: its status becomes error with error code 1044 (Insufficient message credits). Check it with the message status endpoint.

id
string

A 24-character hexadecimal ID.

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

"6650a1b2c3d4e5f6a7b8c9d0"

localMessageId
string
status
enum<string>
Available options:
ACCEPTED
message
string
warnings
any[]