POST /subscriptions
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/subscriptions
Create a subscription
Subscribe a target_url to a Trackdrive event such as new_call. Trackdrive POSTs the event payload to that URL every time the event fires. If a subscription already exists for the same target_url and event it is updated instead of duplicated. Optional trigger_fields limit delivery to records matching specific field values.
Params
| Param name | Description |
|---|---|
|
target_url Required |
The unique auto-generated subscription URL where Trackdrive will send JSON data when the event is triggered.
|
|
event Required |
The event that will be triggered. EG: When a new call comes in.
|
|
trigger_fields Optional |
Filter the data returned by the subscription. Only trigger if the object matches the given trigger fields. For example:
|