curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" "https://[your-subdomain].trackdrive.com/api/v1/traffic_sources?page=1&order=created_at"
Param name |
Description
Validations
|
---|---|
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:
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" -H "Content-Type: application/json" -X POST -d '{"user_traffic_source_id":"xyz","first_name":"name", "generate_team":"true", team_users_emails: ["john-smith@gmail.com"], team_offer_ids: [58923]}' https://[your-subdomain].trackdrive.com/api/v1/traffic_sources
Param name |
Description
Validations
|
---|---|
user_traffic_source_id Optional |
Your external ID assigned to this traffic source.
|
first_name Optional |
First Name
|
last_name Optional |
First Name
|
company_name Optional |
Company Name
|
number_limit Optional |
Number Limit
|
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 recieve 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.
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" -H "Content-Type: application/json" -X PUT -d '{"user_traffic_source_id":"new_user_ts_id","first_name":"new name"}' https://[your-subdomain].trackdrive.com/api/v1/traffic_sources/:id
Param name |
Description
Validations
|
---|---|
user_traffic_source_id Optional |
Your external ID assigned to this traffic source.
|
first_name Optional |
First Name
|
last_name Optional |
First Name
|
company_name Optional |
Company Name
|
number_limit Optional |
Number Limit
|
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 recieve 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.
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" -H "Content-Type: application/json" -X DELETE https://[your-subdomain].trackdrive.com/api/v1/traffic_sources/:id