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:
|
||||||
|
requested_number Optional Blank Value Allowed |
The phone number you wish to purchase from /api/v1/phone_numbers/search 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:
|