Skip to Content
Developers
Call campaigns

Attach a publisher to a call campaign

Needs the campaigns:write scope. About scopes

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/account/call-campaigns/{id}/publishers

Puts one of the account’s publishers on the campaign with its payout. approved (the default) lets it route at once; invited asks it to apply. 409 source_exists when it is already on.

Authorization

key
headerAuthorizationBearer <traki_account_…>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
publisherId*string
Formatuuid
status?string
Value in"approved""invited"
payout?

The publisher’s payout on this campaign; the campaign payout when left out.

note?string
Lengthlength <= 300

Response Body

Success

application/json
  1. response
id*string
Formatuuid
externalId*string|null
code*string
name*string
vertical*string
status*string
routingMode*string
buyerPrice*string
publisherPayout*string
billableAfterSec*integer
Range-9007199254740991 <= value <= 9007199254740991
buyers*array<>
publishers*array<>
version*string
createdAt*string
updatedAt*string
Example Request
curl -X POST 'https://api.traki.io/v1/account/call-campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/publishers' \  -H "Authorization: Bearer $TRAKI_KEY" \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: a-unique-id-for-this-change' \  -d '{  "publisherId": "f1ba8124-cabe-46cd-b4f9-1189594ff7b3"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "externalId": "string",  "code": "string",  "name": "string",  "vertical": "string",  "status": "string",  "routingMode": "string",  "buyerPrice": "string",  "publisherPayout": "string",  "billableAfterSec": -9007199254740991,  "buyers": [    {      "buyer": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "externalId": "string",        "name": "string"      },      "tier": -9007199254740991,      "bid": "string",      "capDay": -9007199254740991,      "capMonth": -9007199254740991    }  ],  "publishers": [    {      "publisher": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "externalId": "string",        "name": "string"      },      "status": "string",      "payout": "string"    }  ],  "version": "string",  "createdAt": "string",  "updatedAt": "string"}