Passer au contenu principal

Endpoint

POST /api/v1/campaigns/{id}/pause

Paramètres path

NomTypeRequisDescription
idUUIDouiID de la campagne
Pas de body.

Réponse succès 200

{
  "data": {
    "id": "cmp_uuid",
    "userId": "user_uuid",
    "instanceId": "inst_uuid",
    "name": "Promo Black Friday",
    "templateId": null,
    "type": "text",
    "body": "Bonjour, découvrez notre promo.",
    "mediaUrl": null,
    "schedule": "2026-04-02T10:00:00.000Z",
    "repeat": "none",
    "status": "paused",
    "recipients": { "type": "all" },
    "templateVariables": null,
    "stats": {
      "planned": 500,
      "queued": 120,
      "sent": 350,
      "delivered": 330,
      "read": 210,
      "failed": 30,
      "cancelled": 0
    },
    "createdAt": "2026-04-01T17:00:00.000Z",
    "updatedAt": "2026-04-02T10:05:00.000Z"
  }
}

Erreurs courantes

HTTPCodeQuand
400BAD_REQUESTStatut incompatible avec la pause
404NOT_FOUNDCampagne introuvable