Blacklist: Clear Blacklist
API resource for removing all numbers from your blacklist.
GET /unblock_contact_jobs
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/unblock_contact_jobs
List Clear Blacklist records.
List the bulk Clear Blacklist jobs that have been run or queued for your account, including their progress and completion status.
Params
| Param name | Description |
|---|---|
|
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 /unblock_contact_jobs/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/unblock_contact_jobs/new
Build Clear Blacklist with defaults.
Return a blank Clear Blacklist job populated with default attribute values, useful for building a create form.
Params
| Param name | Description |
|---|---|
|
description Optional Blank value allowed |
Description
|
|
blocked_at_from Optional Blank value allowed |
Blocked At From
|
|
blocked_at_to Optional Blank value allowed |
Blocked At To
|
|
request_ip Optional Blank value allowed |
Request Ip
|
|
last_contact_id Optional Blank value allowed |
Last Contact
|
POST /unblock_contact_jobs
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/unblock_contact_jobs
Create Clear Blacklist.
Queue a bulk job that unblocks every blacklisted contact whose blocked_at falls within the given date range. The job runs asynchronously in the background; check its status via the show endpoint.
Params
| Param name | Description |
|---|---|
|
description Optional Blank value allowed |
Description
|
|
blocked_at_from Optional Blank value allowed |
Blocked At From
|
|
blocked_at_to Optional Blank value allowed |
Blocked At To
|
|
request_ip Optional Blank value allowed |
Request Ip
|
|
last_contact_id Optional Blank value allowed |
Last Contact
|
GET /unblock_contact_jobs/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/unblock_contact_jobs/:id
Get Clear Blacklist by id.
Get the status and progress of a single Clear Blacklist job by id.
DELETE /unblock_contact_jobs/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/unblock_contact_jobs/:id
Destroy Clear Blacklist by id.
Cancels a Clear Blacklist job by id, so it stops making further progress if it has not finished. The record is retained but excluded from future index and show results.