Webhook URLs
Configure the URLs that fire when an Outgoing Webhook is triggered.
GET /outgoing_webhook_urls
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/outgoing_webhook_urls
List webhook urls
List the remote URLs configured under your Outgoing Webhooks, optionally filtered by outgoing_webhook_id.
Params
| Param name | Description |
|---|---|
|
outgoing_webhook_id Optional |
Filter for urls that are assigned to this webhook.
|
|
ids Optional |
Return records matching these ids.
|
|
page Optional |
Return the next page of results.
|
|
per_page Optional |
How many results to return per page. The default is 25.
|
|
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
fulltext Optional |
Search for any record that matches this text
|
|
time_zone Optional |
Date ranges will be parsed using this time zone.
|
|
columns Optional |
Specify the columns you would like returned by the API for a given resource.
Limiting the columns can significantly increase API response time since only the requested data will be processed.
columns=uuid,number,created_at
Must be any combination of:
|
|
root Optional |
Pass
|
GET /outgoing_webhook_urls/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/outgoing_webhook_urls/new
Build a new webhook url
Return a new, unsaved outgoing webhook URL pre-filled with defaults. Requires an outgoing_webhook_id.
Params
| Param name | Description |
|---|---|
|
outgoing_webhook_id Required |
Assign the record to this Outgoing Webhook.
|
|
remote_url Optional |
Remote URL
|
|
remote_method Optional |
Remote Method
|
|
post_body Optional |
POST Body. Custom POST Body can be used to send JSON or XML requests. Example JSON Body:
|
|
post_headers Optional |
POST Headers. Set the HTTP headers. List each header on a separate line. Example Headers:
|
|
sortable_order Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
|
name Optional Blank value allowed |
A friendly name for this webhook URL, shown when managing the webhook.
|
|
webhook_read_timeout Optional Blank value allowed |
The number of seconds to wait for the remote server’s response before treating the request as failed. Must be between 3 and 29.
|
|
extract_webhook_params Optional Blank value allowed |
When true, on save Trackdrive removes query string parameters from the Remote URL and creates a matching Webhook Param for each one.
|
|
buyer_ping_parser_ids Optional Blank value allowed |
The Ping Parsers applied to this URL’s response, used when its webhook fires before dialing a buyer.
|
|
token_value_map_group_ids Optional Blank value allowed |
Map lead and call data to custom values by assigning these Token Value Map Groups to this URL.
|
|
filter_token_value_ids Optional Blank value allowed |
The Tokens used with record_token_filter_list to decide whether this URL’s webhook fires for a call.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
|
webhook_response_success_codes Optional Blank value allowed |
A comma-separated list of HTTP status codes treated as a successful response, for example
|
|
webhook_body_success_path Optional Blank value allowed |
The path within the response body checked to confirm the request succeeded, for example
|
|
webhook_body_success_match Optional Blank value allowed |
The value the response body’s
|
|
cache_success_for_seconds Optional Blank value allowed |
The number of seconds a successful response is cached and reused for a repeat request instead of contacting the remote server again.
|
|
suppression_on_failure Optional Blank value allowed |
When true, a caller is added to a suppression list after enough consecutive failures from this URL.
|
|
suppression_failure_threshold Optional Blank value allowed |
The number of consecutive failures from this URL before the caller is added to the suppression list.
|
|
suppression_buyer_suppression_id Optional Blank value allowed |
The suppression list callers are added to once
|
|
retry_on_failure Optional Blank value allowed |
When true, a failed request to this URL is retried.
|
|
retry_max_attempts Optional Blank value allowed |
The maximum number of times a failed request to this URL is retried. Must be between 0 and 10.
|
|
retry_delay_seconds Optional Blank value allowed |
The number of seconds to wait before retrying a failed request to this URL. Must be between 30 and 3600.
|
POST /outgoing_webhook_urls
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/outgoing_webhook_urls
Create a webhook url
Attach a remote URL, HTTP method, and POST body and headers to an existing Outgoing Webhook, so that URL is called whenever the webhook's trigger fires.
Params
| Param name | Description |
|---|---|
|
outgoing_webhook_id Required |
Assign the record to this Outgoing Webhook.
|
|
remote_url Optional |
Remote URL
|
|
remote_method Optional |
Remote Method
|
|
post_body Optional |
POST Body. Custom POST Body can be used to send JSON or XML requests. Example JSON Body:
|
|
post_headers Optional |
POST Headers. Set the HTTP headers. List each header on a separate line. Example Headers:
|
|
sortable_order Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
|
name Optional Blank value allowed |
A friendly name for this webhook URL, shown when managing the webhook.
|
|
webhook_read_timeout Optional Blank value allowed |
The number of seconds to wait for the remote server’s response before treating the request as failed. Must be between 3 and 29.
|
|
extract_webhook_params Optional Blank value allowed |
When true, on save Trackdrive removes query string parameters from the Remote URL and creates a matching Webhook Param for each one.
|
|
buyer_ping_parser_ids Optional Blank value allowed |
The Ping Parsers applied to this URL’s response, used when its webhook fires before dialing a buyer.
|
|
token_value_map_group_ids Optional Blank value allowed |
Map lead and call data to custom values by assigning these Token Value Map Groups to this URL.
|
|
filter_token_value_ids Optional Blank value allowed |
The Tokens used with record_token_filter_list to decide whether this URL’s webhook fires for a call.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
|
webhook_response_success_codes Optional Blank value allowed |
A comma-separated list of HTTP status codes treated as a successful response, for example
|
|
webhook_body_success_path Optional Blank value allowed |
The path within the response body checked to confirm the request succeeded, for example
|
|
webhook_body_success_match Optional Blank value allowed |
The value the response body’s
|
|
cache_success_for_seconds Optional Blank value allowed |
The number of seconds a successful response is cached and reused for a repeat request instead of contacting the remote server again.
|
|
suppression_on_failure Optional Blank value allowed |
When true, a caller is added to a suppression list after enough consecutive failures from this URL.
|
|
suppression_failure_threshold Optional Blank value allowed |
The number of consecutive failures from this URL before the caller is added to the suppression list.
|
|
suppression_buyer_suppression_id Optional Blank value allowed |
The suppression list callers are added to once
|
|
retry_on_failure Optional Blank value allowed |
When true, a failed request to this URL is retried.
|
|
retry_max_attempts Optional Blank value allowed |
The maximum number of times a failed request to this URL is retried. Must be between 0 and 10.
|
|
retry_delay_seconds Optional Blank value allowed |
The number of seconds to wait before retrying a failed request to this URL. Must be between 30 and 3600.
|
GET /outgoing_webhook_urls/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/outgoing_webhook_urls/:id
Show the details of a webhook url
Retrieve the configuration of a single outgoing webhook URL.
PUT /outgoing_webhook_urls/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/outgoing_webhook_urls/:id
Update a webhook url
Change the remote URL, HTTP method, POST body, headers, or sort order of an existing outgoing webhook URL.
Params
| Param name | Description |
|---|---|
|
outgoing_webhook_id Optional |
Assign the record to this Outgoing Webhook.
|
|
remote_url Optional |
Remote URL
|
|
remote_method Optional |
Remote Method
|
|
post_body Optional |
POST Body. Custom POST Body can be used to send JSON or XML requests. Example JSON Body:
|
|
post_headers Optional |
POST Headers. Set the HTTP headers. List each header on a separate line. Example Headers:
|
|
sortable_order Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
|
name Optional Blank value allowed |
A friendly name for this webhook URL, shown when managing the webhook.
|
|
webhook_read_timeout Optional Blank value allowed |
The number of seconds to wait for the remote server’s response before treating the request as failed. Must be between 3 and 29.
|
|
extract_webhook_params Optional Blank value allowed |
When true, on save Trackdrive removes query string parameters from the Remote URL and creates a matching Webhook Param for each one.
|
|
buyer_ping_parser_ids Optional Blank value allowed |
The Ping Parsers applied to this URL’s response, used when its webhook fires before dialing a buyer.
|
|
token_value_map_group_ids Optional Blank value allowed |
Map lead and call data to custom values by assigning these Token Value Map Groups to this URL.
|
|
filter_token_value_ids Optional Blank value allowed |
The Tokens used with record_token_filter_list to decide whether this URL’s webhook fires for a call.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
|
webhook_response_success_codes Optional Blank value allowed |
A comma-separated list of HTTP status codes treated as a successful response, for example
|
|
webhook_body_success_path Optional Blank value allowed |
The path within the response body checked to confirm the request succeeded, for example
|
|
webhook_body_success_match Optional Blank value allowed |
The value the response body’s
|
|
cache_success_for_seconds Optional Blank value allowed |
The number of seconds a successful response is cached and reused for a repeat request instead of contacting the remote server again.
|
|
suppression_on_failure Optional Blank value allowed |
When true, a caller is added to a suppression list after enough consecutive failures from this URL.
|
|
suppression_failure_threshold Optional Blank value allowed |
The number of consecutive failures from this URL before the caller is added to the suppression list.
|
|
suppression_buyer_suppression_id Optional Blank value allowed |
The suppression list callers are added to once
|
|
retry_on_failure Optional Blank value allowed |
When true, a failed request to this URL is retried.
|
|
retry_max_attempts Optional Blank value allowed |
The maximum number of times a failed request to this URL is retried. Must be between 0 and 10.
|
|
retry_delay_seconds Optional Blank value allowed |
The number of seconds to wait before retrying a failed request to this URL. Must be between 30 and 3600.
|
DELETE /outgoing_webhook_urls/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/outgoing_webhook_urls/:id
Delete a webhook url
Permanently remove a URL from an Outgoing Webhook. It will stop being called when the webhook's trigger fires.