Skip to main content
GET
Send a WhatsApp message from query parameters

Authorizations

apiKey
string
header
required

API key from Settings → API keys.

apiSecret
string
header
required

Secret shown once when the API key is created.

Query Parameters

c
string
required

Channel ID to send from. A 24-character hexadecimal ID.

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

"6650a1b2c3d4e5f6a7b8c9d0"

p
string

Recipient phone number with country code, digits only.

n
string

Recipient name.

t
enum<string>
required

Message type.

Available options:
text,
template
messageText
string

Text of a text message.

templateName
string

Template name, for t=template. Template variables are passed as further query parameters.

contextType
enum<string>

notification (default) doesn't open an inbox conversation; default treats the message like one sent from the inbox.

Available options:
notification,
default
headerValues_mediaUrl
string

Public URL of the template's header media.

headerValues_mediaName
string

File name for a document header.

checkActiveSession
boolean

Applies to non-template messages in sync mode only. When true, the request fails with 422 if more than 24 hours have passed since the contact last wrote to this number. Ignored in async mode.

checkOptIn
boolean

Applies to template messages. When true, a template to a contact who has not opted in is refused: sync returns 421; in async mode the message is not sent.

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[]