cURL
curl --request POST \ --url https://api.notifique.dev/v1/campaigns \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "channels": [ "whatsapp" ], "templateId": "<string>", "segmentId": "<string>", "audienceContactIds": [ "<string>" ], "scheduledFor": "2023-11-07T05:31:56Z", "instanceId": "<string>", "fromEmail": "<string>", "variables": {} } '
{ "success": true, "data": { "id": "<string>", "name": "<string>", "status": "DRAFT", "templateId": "<string>", "channels": [ "whatsapp" ], "segmentId": "<string>", "audienceContactIds": [ "<string>" ], "scheduledFor": "2023-11-07T05:31:56Z", "instanceId": "<string>", "fromEmail": "<string>", "variables": {}, "startedAt": "2023-11-07T05:31:56Z", "completedAt": "2023-11-07T05:31:56Z", "errorMessage": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Status inicial DRAFT. Defina segmentId ou audienceContactIds. Escopo: campaigns:create.
DRAFT
segmentId
audienceContactIds
Authorization: Bearer sk_live_xxxxx
128
1
whatsapp
sms
email
Show child attributes
Criada.
Was this page helpful?