Read Subscriptions
List the event subscriptions (webhooks) that exist for a domain.
POST
/?object=event&action=readRequest URL
POST
https://uc.hopdial.com/ns-api/?object=event&action=readSend your access token in the Authorization: Bearer header. Body parameters are sent as application/x-www-form-urlencoded. New to the API? Start with authentication and rate limits.
Parameters
| Name | Type | Description |
|---|---|---|
domainrequiredbody | string | Specify which domain you would like to receive events for. Use * to receive events for all domains. |
useroptionalbody | string | Filter to read only subscriptions for a specific user. |
Example request
text
curl https://uc.hopdial.com/ns-api/ \
-H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
-d object='event' \
-d action='read' \
-d domain='abc-company.11111.service' Responses
200 · application/json
<xml>
<subscription>
<subscription_id>83448ad89a10bffe6fe7a456278bbf23</subscription_id>
<model>auditlog</model>
<scope>Office Manager</scope>
<territory>11111</territory>
<domain>demo.11111.service</domain>
<user>*</user>
<post_url>https://events.mycompany.com/receive</post_url>
<creation>2017-07-03 14:01:36</creation>
<expires>2018-07-03 09:01:00</expires>
</subscription>
<subscription>
<subscription_id>e774c64518a9ea53fae68b31f90d1452</subscription_id>
<model>call</model>
<scope>Office Manager</scope>
<territory>11111</territory>
<domain>corp.111111.service</domain>
<user>*</user>
<post_url>https://app.notify.com</post_url>
<creation>2017-07-03 14:01:36</creation>
<expires>2018-07-03 09:01:00</expires>
</subscription>
<subscription>
<subscription_id>68de6db345a560cea26aaffc6162ff12</subscription_id>
<model>agent</model>
<scope>Office Manager</scope>
<territory>11111</territory>
<domain>test.11111.service</domain>
<user>*</user>
<post_url>https://app.mycompany.com</post_url>
<creation>2017-07-03 14:01:36</creation>
<expires>2018-07-03 09:01:00</expires>
</subscription>
</xml>More Subscriptions endpoints
Webhooks: get call, CDR, recording, presence, agent, and audit events POSTed to your own URL.
Need a Client ID and Client Secret or help with this endpoint? Contact HopDial support or call (866) 305-0407.