Traffic Sources
The traffic sources in your account.
GET /traffic_sources
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/traffic_sources
Get traffic sources matching filters.
Search and list the traffic sources (publishers) in your account with filters, or request the CSV format for bulk export.
Supported Formats
json, csvParams
| Param name | Description |
|---|---|
|
page Optional |
Return the next page of results.
|
|
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
|
|
order Optional |
Sort results by this field.
|
|
order_dir Optional |
Sort results in ascending or descending order.
|
|
fulltext Optional |
Search for any record that matches this text
|
|
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:
|
GET /traffic_sources/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/traffic_sources/new
Build Traffic Source with defaults.
Return a blank traffic source populated with default attribute values, useful for building a create form.
POST /traffic_sources
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/traffic_sources
Create Traffic Source.
Create a traffic source. You must supply a first name, last name, or company name; at least one is required to identify the traffic source.
Params
| Param name | Description |
|---|---|
|
user_traffic_source_id Optional |
Your own unique identifier for the Traffic Source, also known as an AFID.
|
|
first_name Optional |
The first name for the Traffic Source’s contact.
|
|
last_name Optional |
The last name for the Traffic Source’s contact.
|
|
company_name Optional |
The company name for the Traffic Source’s contact.
|
|
description Optional Blank value allowed |
A free-text note about this Traffic Source, stored alongside it and returned in the API response.
|
|
number_limit Optional |
How many numbers can team members purchase for this Traffic Source?
|
|
record_token_additional_list Optional Blank value allowed |
Assign additional tokens that will be applied to leads and calls by passing a comma separated string of key:value pairs.
|
|
grant_team_offer_id Optional Blank value allowed |
Give this Traffic Source access to this Offer.
|
|
revoke_team_offer_id Optional Blank value allowed |
Remove access to this Offer for this Traffic Source.
|
|
generate_team Optional |
Grant access to this Traffic Source, and calls that it publishes.
|
|
team_users_emails Optional Blank value allowed |
The selected users will receive an email invitation to collaborate on your company.
|
|
team_offer_ids Optional Blank value allowed |
Team members will be able to buy numbers for these offers, and view calls published to them by their Traffic Source.
|
GET /traffic_sources/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/traffic_sources/:id
Get Traffic Source by id.
Get the details of a single traffic source by id.
PUT /traffic_sources/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/traffic_sources/:id
Update Traffic Source by id.
Update a traffic source, including its name, number limit, or team access settings.
Params
| Param name | Description |
|---|---|
|
user_traffic_source_id Optional |
Your own unique identifier for the Traffic Source, also known as an AFID.
|
|
first_name Optional |
The first name for the Traffic Source’s contact.
|
|
last_name Optional |
The last name for the Traffic Source’s contact.
|
|
company_name Optional |
The company name for the Traffic Source’s contact.
|
|
description Optional Blank value allowed |
A free-text note about this Traffic Source, stored alongside it and returned in the API response.
|
|
number_limit Optional |
How many numbers can team members purchase for this Traffic Source?
|
|
record_token_additional_list Optional Blank value allowed |
Assign additional tokens that will be applied to leads and calls by passing a comma separated string of key:value pairs.
|
|
grant_team_offer_id Optional Blank value allowed |
Give this Traffic Source access to this Offer.
|
|
revoke_team_offer_id Optional Blank value allowed |
Remove access to this Offer for this Traffic Source.
|
|
generate_team Optional |
Grant access to this Traffic Source, and calls that it publishes.
|
|
team_users_emails Optional Blank value allowed |
The selected users will receive an email invitation to collaborate on your company.
|
|
team_offer_ids Optional Blank value allowed |
Team members will be able to buy numbers for these offers, and view calls published to them by their Traffic Source.
|
|
paused Optional |
Pause or unpause.
|
DELETE /traffic_sources/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/traffic_sources/:id
Destroy Traffic Source by id.
Permanently delete a traffic source.