Create Campaign
Crea una nueva Campaña para tu organización. Usa integration_type para seleccionar entre llamada telefónica o WhatsApp; los campos exclusivos del canal contrario son rechazados.
Channel-specific Fields
| Field | Channel |
|---|---|
first_message | phone_call |
template | whatsapp |
template_alt | whatsapp |
integration_type returns a 400 INVALID_REQUEST.
Cycles
cycles is optional. When cycles.enabled is false (or omitted), the rest of the cycles block is ignored. When cycles.mode is cooldown, schedule* fields are rejected. Cycles can be enabled only at creation time; cycles.enabled and cycles.mode are immutable thereafter.
Examples
Phone-call campaign with cooldown cycles
WhatsApp campaign
Authorizations
Add api-key YOUR_API_SECRET_KEY as the value of the Authorization header.
Headers
Optional client-generated key (UUID recommended) to make the request idempotent. Replays within the dedup window return the original response.
Body
Campaign to be created
255public_id of the agent that will own this campaign.
public_id of the integration to use. Must belong to agent_id.
phone_call, whatsapp IANA timezone. Defaults to America/Mexico_City.
0 <= x <= 51 <= x <= 10000First message the Agent will say upon the call being answered. Phone-call only.
WhatsApp template name. WhatsApp only.
Alternate WhatsApp template name. WhatsApp only.
Cycles configuration block. Phone-call campaigns only.