Create Subscription
POST https://{{axpAPIDomain}}/api/digital/webhook/v1/accounts/:accountId/subscriptions
Creates a webhook subscription for digital events. A subscription supports filtering of events by specifying an event type.
Request Body
{"channelProviderId"=>"{{digitalChannelProviderId}}", "callbackUrl"=>"{{digitalCallbackURL}}", "eventTypes"=>["ALL"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
appkey | string | ||
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"subscriptionId":"2581e39b-fe84-4e38-87f4-63a1d037f39a","channelProviderId":"ChatProvider01","callbackUrl":"https://www.example.com/send/callback/here","eventTypes":["MESSAGES"]}