#
Subscribe
Subscribe a webhook endpoint to receive incoming messages received on your channel.
#
Method
POST
#
Path
/webhook-subscriptions
#
Body parameters
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]",
"subscriber_reference_id": "ABC1234567890XYZ",
"webhook_url": "https://example.com/incoming"
}'