Skip to main content
POST
Send an Instagram message

Authorizations

apiKey
string
header
required

API key from Settings → API keys.

apiSecret
string
header
required

Secret shown once when the API key is created.

Body

application/json
channelId
string
required

The Instagram channel to send from.

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

"6650a1b2c3d4e5f6a7b8c9d0"

recipient
object
required

Who to send to. Give instagramUserId or contactId.

message
object
required

The message. Give text, attachment, or both.

localMessageId
string

Your own reference for the message.

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