Blacklist
The contacts that have dialed your numbers.
GET /contacts/suppression_list
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contacts/suppression_list
List contacts on your company blacklist.
Returns the contacts your company has blocked - your do-not-call blacklist. A blocked contact cannot call or text in, and no outbound calls, SMS, or email are sent to it. Supports pagination and filtering by creation date or the date the contact was blocked. Requires the Suppression List permission.
Params
| Param name | Description |
|---|---|
|
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
|
POST /contacts/:caller_id/caller_block
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contacts/:caller_id/caller_block
Blacklist a caller ID
Add a caller_id to your company blacklist, preventing all inbound and outbound interactions.
POST /contacts/:caller_id/caller_unblock
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contacts/:caller_id/caller_unblock
Remove a caller from your company blacklist.
Removes a contact from your company blacklist so inbound calls and SMS from that number are accepted again and outbound calls, SMS, and email can resume. This only unblocks the contact itself - any Lead records that were separately blocked when the contact was blacklisted are not automatically unblocked. Requires superuser access.
GET /contacts/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contacts/:id
Get details about a contact.
Returns details for a single contact, including whether it is blocked or opted out. Look it up either by Trackdrive's internal contact id or by passing the full 10+ digit phone number as the id. Requires read permission on Contacts.
Params
| Param name | Description |
|---|---|
|
id Optional |
Lookup a contact by internal id, or by the 10+ digit telephone number. For example:
|
|
blocked Optional |
Block or unblock a contact. Block prevents outbound actions (calls, sms, emails), and also blocks all inbound calls & sms.
|
PUT /contacts/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contacts/:id
Update a contact
Blocks or unblocks a contact, or marks it opted out/in for SMS. Blocking here affects only this contact record; opting out also opts out every Lead with the same phone number, preventing outbound contact while still letting them dial back in to resubscribe. Requires the Call Block permission.
Params
| Param name | Description |
|---|---|
|
id Optional |
Lookup a contact by internal id, or by the 10+ digit telephone number. For example:
|
|
opt_out Optional |
Mark a contact as opt-out or opt-in. Opt-out prevents outbound actions (calls, sms, emails), but allows the lead to dial in to your offers to resubscribe.
|
|
blocked Optional |
Block or unblock a contact. Block prevents outbound actions (calls, sms, emails), and also blocks all inbound calls & sms.
|
DELETE /contacts/:id/calls
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contacts/:id/calls
Hang up a contact's ongoing calls
Ends any calls from this contact that are currently in progress, queuing the hangup right away - it does not delete call history or any records. Use it to stop a live call immediately, for example right after blocking a caller. Requires superuser access.
Params
| Param name | Description |
|---|---|
|
uuid Optional |
A unique identifier eg: 5cc8897c-ad0f-44cb-8ea7-8f7736ae76f1
|