cURL
curl --request POST \ --url https://api.sendo.dev/v1/campaign/{id}/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "url": "<string>", "eventTypes": [ "<string>" ], "numbers": [ "<string>" ] }'
{ "success": true, "webhook": { "id": "d3392dbf-ae4b-43b9-9b50-dcafa5c7h4mn", "createdAt": "2023-12-31T03:07:35.826Z", "name": "Event Service", "url": "https://website.com/webhook", "campaignId": "g1tkV7Eq", "signature": "aVWS7HTLR9xxMkdE", "eventTypes": [ "message.incoming", "message.status" ], "numbers": [ "+14159436397" ] } }
Create webhook for a campaign.
message.incoming
message.status
recipient.optout
Show webhook fields
Show event types