Skip to Content
Developers
Call campaigns

Attach a buyer 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}/buyers

Puts one of the account’s buyers on the campaign with its bid, tier and caps. The bid defaults to the campaign’s buyer price. 409 buyer_exists when it is already on.

Authorization

key
headerAuthorizationBearer <traki_account_…>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
buyerId*string
Formatuuid
bid?number
Range0 <= value <= 100000
tier?integer

Priority tier, 1 first.

Range1 <= value <= 20
weight?integer
Range0 <= value <= 1000
capHour?|null
capDay?|null
capMonth?|null
concurrency?|null

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/buyers' \  -H "Authorization: Bearer $TRAKI_KEY" \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: a-unique-id-for-this-change' \  -d '{  "buyerId": "7925fb6c-1391-458a-9144-275078d9f24b"}'
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"}