Supported Formats

json

Examples

curl -H "Content-Type: application/json" -X PUT -d '{"traffic_source_id":"1002592"}' https://[your-subdomain].trackdrive.net/api/v1/phone_numbers/:id?auth_token=[your-auth-token]

Params

Param name
Description
auth_token
Optional

Authorize requests using your token. Get it from your profile: trackdrive.net/profile/edit

  • Must be String

serializer
Optional Blank Value Allowed

This endpoint supports multiple response formats. Pass serializer=name to retrieve data in an alternate format.

  • Must be a value contained in the pick list:
    Acceptable ValueDescription
    numberDefault response format.
    number_gridModern response format that returns various foreign keys for use with other API endpoints.
id
Optional

This can be either the internal trackdrive id or the full phone number beginning with '+'
For example:
To find a number using trackdrive's internal id pass id=185923
To find a number using the phone number pass id=+18005002562"

  • Must be String

offer_id
Optional Blank Value Allowed

Refer to the offer api for details

traffic_source_id
Optional Blank Value Allowed

Refer to the traffic source api for details

ring_pool_id
Optional Blank Value Allowed

Refer to the Number Pool api for details

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

  • Must be a boolean value: 1, true, yes, on, 0, false, no, off

token_values
Optional Blank Value Allowed

Inbound calls will be tagged with these Extra Tokens.

  • Must be a valid list of filters. Example filters:
    ["interest:auto", "loan_amount:>=10000", "loan_amount:<=50000", "geo:!=800", "caller_id:!=anonymous"]