Onboard a publisher
Add a publisher, give it numbers and payout terms, and let it see its own results.
Creating by API arrives in release 2
Today the Account API reads publishers and numbers. Creating a publisher, inviting it and assigning numbers from the API arrive in the next release. Until then, do those steps in the portal, then follow the publisher with the API as shown below.
The steps
- Create the publisher with your own ID as
externalId. No email goes out unless you ask for an invitation. - Attach it to a campaign with its payout terms.
- Assign numbers from your inventory, so its calls are counted as its own.
- Give it a Publisher API key, if it wants to read its own results from its systems. See the Publisher API.
What you can do today
Find the publisher by your own ID:
curl 'https://api.traki.io/v1/account/publishers?externalId=partner-77' \
-H "Authorization: Bearer $TRAKI_KEY"See which numbers are assigned to it:
curl 'https://api.traki.io/v1/account/numbers?publisherId=6f0d9a2e-4b1c-4e8a-9c3d-2a7b5e1f0c84' \
-H "Authorization: Bearer $TRAKI_KEY"Follow its calls as they come in:
curl 'https://api.traki.io/v1/account/calls?publisherId=6f0d9a2e-4b1c-4e8a-9c3d-2a7b5e1f0c84&limit=25' \
-H "Authorization: Bearer $TRAKI_KEY"Your key needs publishers:read, numbers:read and calls:read.