Subscribe
Subscribe a webhook endpoint to receive incoming messages received on your channel. You can also subscribe to status updates for outgoing messages.
Method
POST
Path
/webhook-subscriptions
Body parameters
info
If you call this API with the same subscriber_reference_id, it will update the existing subscription.
Response
HTTP status codes
Response object
Code sample
curl --location --request POST 'https://api.sociocs.com/webhook-subscriptions' \
--header 'apikey: your_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"platform": "salesforce",
"provider": "twlo",
"channel_key": "[your channel key]",
"events": ["messages", "status_updates"],
"subscriber_reference_id": "ABC1234567890XYZ",
"webhook_url": "https://example.com/incoming"
}'