Create a webhook subscription to receive event notifications for a campaign.
POST /v1/campaigns/{id}/subscriptions
Authorization: Bearer <access_token> or Authorization: Basic <encodedString> where <encodedString> is your <api-key>:<api-secret> string encoded using Base64 encoding
id REQUIRED
string (UUID)
Unique ID assigned to the campaign in RocketCOMS.
eventTypes REQUIRED
array
List of events for which the subscription receives notifications. Possible values are:
url REQUIRED
string
Webhook subscription URL endpoint.
If successful, returns 200 Webhook created successfully.
SAMPLE REQUEST
{
"eventTypes": [
"message.status",
"message.replies",
"batch.status"
],
"url": "https://mycompany.com/webhook/listener"
}
SAMPLE RESPONSE
{
200 Webhook created successfully
}
RocketCOMs is a powerful SMS marketing platform that empowers businesses with seamless support for multiple brands, intuitive campaign management, real-time analytics, and advanced formatting options for successful text message campaigns.