Skip to Content
Developers
Call campaigns

Create 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

Creates a call campaign as a draft with the account’s own traffic on it. Attach buyers and publishers, then resume it to start routing (resuming a draft activates it once it has what it needs). Counts against the plan’s campaigns (402 limit_reached).

Authorization

key
headerAuthorizationBearer <traki_account_…>

Request Body

application/json
  1. body
externalId?string

The account’s own id for the record, unique in the account.

Length1 <= length <= 200
name*string
Length2 <= length <= 120
vertical*string
Length2 <= length <= 80
buyerPrice*number

What a buyer pays for a billable call.

Range0 <= value <= 100000
publisherPayout?number

What a publisher is paid for a billable call, unless its own terms say otherwise.

Range0 <= value <= 100000
billableAfterSec?integer

Connected seconds after which a call is billable.

Range0 <= value <= 3600
routingMode?string

How a call picks among the campaign’s buyers.

Value in"weighted""priority""round_robin""bid"

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' \  -H "Authorization: Bearer $TRAKI_KEY" \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: a-unique-id-for-this-change' \  -d '{  "name": "string",  "vertical": "string",  "buyerPrice": 0}'
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"}