Add a buyer and attach it to a campaign
Create a buyer from your own system and attach it to a call campaign.
Creating by API arrives in release 2
Today the Account API reads buyers and campaigns. Creating a buyer, and attaching it to a campaign, from the API arrive in the next release. Until then, create and attach the buyer in the portal, then find it with the API as shown below.
How it will work
- Create the buyer with your own ID. You send your own ID as
externalId. One call creates the buyer if it is new and updates it if it exists, so running the same sync twice never makes a duplicate. - No email goes out. A buyer created by API gets no email and no portal invitation unless the request asks for one.
- Attach it to a campaign with its price, caps and hours.
- Send an
Idempotency-Keywith each change, so a retry cannot make it twice. See safe retries.
What you can do today
Find a buyer by your own ID:
curl 'https://api.traki.io/v1/account/buyers?externalId=crm-4821' \
-H "Authorization: Bearer $TRAKI_KEY"See which buyers a call campaign has. Each campaign in the list names its buyers and publishers:
curl 'https://api.traki.io/v1/account/call-campaigns?limit=10' \
-H "Authorization: Bearer $TRAKI_KEY"Your key needs buyers:read and campaigns:read. The write routes will need buyers:write and campaigns:write; a key can hold them already.