curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" "https://[your-subdomain].trackdrive.com/api/v1/phone_numbers?number=+441224980000&"
Param name |
Description
Validations
|
||||||
---|---|---|---|---|---|---|---|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|
||||||
number Optional |
The phone number. Validations:
|
||||||
offer_id Optional |
Refer to the offer api for details Validations:
|
||||||
traffic_source_id Optional |
Refer to the traffic source api for details Validations:
|
||||||
provider_configuration_id Optional |
Refer to the provider api for details Validations:
|
||||||
ring_pool_id Optional |
Refer to the Number Pool api for details Validations:
|
||||||
last_call_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500 Validations:
|
||||||
last_call_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500 Validations:
|
||||||
page Optional |
Return the next page of results. Validations:
|
||||||
per_page Optional |
How many results to return per page. The default is 25. Validations:
|
||||||
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500 Validations:
|
||||||
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500 Validations:
|
||||||
fulltext Optional |
Search for any record that matches this text Validations:
|
||||||
time_zone Optional |
Date ranges will be parsed using this time zone. Validations:
|
||||||
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:
Validations:
|
||||||
root Optional |
Pass Validations:
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" -H "Content-Type: application/json" -X POST -d '{provider_configuration_id: 150, offer_id: 100, toll_free: true, country: 'US'}' https://[your-subdomain].trackdrive.com/api/v1/phone_numbers.json
Param name |
Description
Validations
|
||||||
---|---|---|---|---|---|---|---|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|
||||||
provider_configuration_id Required |
Refer to the provider api for details Validations:
|
||||||
offer_id Required |
Refer to the offer api for details Validations:
|
||||||
toll_free Required |
Purchase a toll-free or local number? true for toll-free, false for local number. Validations:
|
||||||
country Required |
The country where the number will be purchased. Validations:
|
||||||
traffic_source_id Optional Blank Value Allowed |
Refer to the traffic source api for details Validations:
|
||||||
ring_pool_id Optional Blank Value Allowed |
Refer to the Number Pool api for details Validations:
|
||||||
traffic_source_override_lead_traffic_source Optional Blank Value Allowed |
Force Calls to Credit This Traffic Source and Extra Tokens, even if Lead Traffic Source or Data is Different Validations:
|
||||||
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. Validations:
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" https://[your-subdomain].trackdrive.com/api/v1/phone_numbers/20590
Param name |
Description
Validations
|
||||||
---|---|---|---|---|---|---|---|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|
||||||
id Optional |
This can be either the internal trackdrive id or the full phone number beginning with '+' Validations:
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" -H "Content-Type: application/json" -X PUT -d '{"traffic_source_id":"1002592"}' https://[your-subdomain].trackdrive.com/api/v1/phone_numbers/:id
Param name |
Description
Validations
|
||||||
---|---|---|---|---|---|---|---|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|
||||||
id Optional |
This can be either the internal trackdrive id or the full phone number beginning with '+' Validations:
|
||||||
offer_id Optional Blank Value Allowed |
Refer to the offer api for details Validations:
|
||||||
traffic_source_id Optional Blank Value Allowed |
Refer to the traffic source api for details Validations:
|
||||||
ring_pool_id Optional Blank Value Allowed |
Refer to the Number Pool api for details Validations:
|
||||||
traffic_source_override_lead_traffic_source Optional Blank Value Allowed |
Force Calls to Credit This Traffic Source and Extra Tokens, even if Lead Traffic Source or Data is Different Validations:
|
||||||
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. Validations:
|
||||||
paused Optional |
Pause or unpause. Validations:
|
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/phone_numbers/:id
Param name |
Description
Validations
|
||||||
---|---|---|---|---|---|---|---|
serializer Optional Blank Value Allowed |
This endpoint supports multiple response formats. Pass Validations:
|
||||||
id Optional |
This can be either the internal trackdrive id or the full phone number beginning with '+' Validations:
|