Blacklist: Files
API resource for uploading blacklist files.
GET /contact_imports
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contact_imports
List Blacklist File records.
List the blacklist (block or unblock) file imports in your account.
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 /contact_imports/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contact_imports/new
Build Blacklist File with defaults.
Return a new, unsaved blacklist import pre-filled with defaults.
Params
| Param name | Description |
|---|---|
|
name Optional Blank value allowed |
Name
|
|
import_file Optional Blank value allowed |
The file containing phone numbers to block or unblock, used when select_import_type is file.
|
|
apply_block_or_unblock Optional Blank value allowed |
Apply Block Or Unblock
|
|
select_import_type Optional Blank value allowed |
Upload Import File Or Text
|
|
import_file_blob Optional Blank value allowed |
Text Blob
|
|
data_map_caller_id Optional Blank value allowed |
The column header from your uploaded file that contains the phone numbers to block or unblock.
|
POST /contact_imports
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contact_imports
Create Blacklist File.
Upload a file or paste a text blob of phone numbers to bulk block or unblock, as set by apply_block_or_unblock. The import is validated on save and then processed asynchronously.
Params
| Param name | Description |
|---|---|
|
name Optional Blank value allowed |
Name
|
|
import_file Optional Blank value allowed |
The file containing phone numbers to block or unblock, used when select_import_type is file.
|
|
apply_block_or_unblock Optional Blank value allowed |
Apply Block Or Unblock
|
|
select_import_type Optional Blank value allowed |
Upload Import File Or Text
|
|
import_file_blob Optional Blank value allowed |
Text Blob
|
|
data_map_caller_id Optional Blank value allowed |
The column header from your uploaded file that contains the phone numbers to block or unblock.
|
|
description Optional Blank value allowed |
A human readable description of this import.
|
GET /contact_imports/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contact_imports/:id
Get Blacklist File by id.
Retrieve a single blacklist import by id, including its processing status.
PUT /contact_imports/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contact_imports/:id
Update Blacklist File by id.
Update a blacklist import's name or column mapping, typically before it has finished processing.
Params
| Param name | Description |
|---|---|
|
name Optional Blank value allowed |
Name
|
|
import_file Optional Blank value allowed |
The file containing phone numbers to block or unblock, used when select_import_type is file.
|
|
apply_block_or_unblock Optional Blank value allowed |
Apply Block Or Unblock
|
|
select_import_type Optional Blank value allowed |
Upload Import File Or Text
|
|
import_file_blob Optional Blank value allowed |
Text Blob
|
|
data_map_caller_id Optional Blank value allowed |
The column header from your uploaded file that contains the phone numbers to block or unblock.
|