Skip to main content
POST
Send campaign message

Send campaign message

Adds a message to a GIA campaign queue. The campaign is created on the first request if it does not exist yet.

Authentication

Send the GIA token as a bearer token:
The token is compared with project.gia_token. Find it under Settings → Inboxes → Inbox Settings → AI Resources.
Never expose the GIA token in client applications or public repositories.

Common fields

* Send account_id and inbox_id together, or use project_id according to the project format.

Direct message

content is required for direct_message.
Minimum payload:

AI-generated message

content is required for system_with_ai and acts as an instruction for the AI.

WhatsApp template

template_params, template_params.name, and template_params.language are required for whatsapp_template_message. category is optional.
template_params preserves additional properties. They must still be compatible with downstream processing and the WhatsApp API.
Projects using a whatsapp_cloud channel only accept whatsapp_template_message on this endpoint.

Validation rules

  • identifier cannot be empty.
  • content is required for direct_message and system_with_ai.
  • template_params is required for whatsapp_template_message.
  • priority only accepts integers from 1 to 5.
  • Unknown top-level fields are discarded; additional fields inside template_params are preserved.

Response

This response confirms that the message was added to the queue. See Campaigns → History to monitor its execution.