Examples

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

Params

Param name
Description
user_traffic_source_id
Optional

Translation missing: en.api.user_traffic_source_id

  • Must be a String

first_name
Optional

Translation missing: en.api.first_name

  • Must be a String

last_name
Optional

Translation missing: en.api.last_name

  • Must be a String

company_name
Optional

Translation missing: en.api.company_name

  • Must be a String

number_limit
Optional

How many numbers can team members purchase for this Traffic Source?

  • Must be a decimal number.

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.

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

team_users_emails
Optional Blank Value Allowed

The selected users will receive an email invitation to collaborate on your company.

  • Must be an array of emails. EG: ["john-smith@gmail.com", "example@domain.com"]

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.

  • Must be a valid array of integers. Each integer ID must be a valid foreign key reference to an Offer. Refer to: /api/docs/1.0/offers