Skip to main content

Endpoint

Important — how to get instanceId

instanceId is required to create a campaign. To get it:
  1. call GET /api/v1/instances
  2. choose an instance with status = "connected" when possible
  3. copy data[n].id
  4. send this value in instanceId
Do not use these instead:
  • name
  • waNumber

Body

Content rule

A campaign must have exactly one content mode:
  • soit templateId
  • soit type + contenu direct
Ne pas envoyer les deux en même temps.

recipients

Success response 201

In V1, safety.decision is allow or warn. A warning does not prevent campaign creation.

Common errors

Examples

Simple text campaign

Campaign with buttons