Lead campaigns
List lead campaigns, with their buyers and publishers
Needs the campaigns:read scope. About scopes
keyheader
AuthorizationBearer <traki_account_…>limit?integerRange
1 <= value <= 100Default
25cursor?stringLength
length <= 200updatedSince?stringFormat
date-timeexternalId?stringLength
1 <= length <= 200status?stringValue in
"draft""active""paused""archived"Success
application/json- response
data*array<>hasMore*booleannextCursor*string|nullcurl 'https://api.traki.io/v1/account/lead-campaigns' \ -H "Authorization: Bearer $TRAKI_KEY"Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "code": "string", "name": "string", "vertical": "string", "status": "string", "distribution": "string", "saleType": "string", "buyerPrice": "string", "publisherPayout": "string", "currency": "string", "buyers": [ { "buyer": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "priority": -9007199254740991, "price": "string" } ], "publishers": [ { "publisher": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" } } ], "version": "string", "createdAt": "string", "updatedAt": "string" } ], "hasMore": true, "nextCursor": "string"}Publish a call flow’s draft POST
Publishes the draft as the flow’s next version; the campaign’s calls run it from then on. The draft is checked again first (422 flow_not_ready, with the issues), a draft equal to the published version is refused (422 flow_unchanged), and a flow on no campaign cannot be published (422 flow_unassigned). With `ifVersion`, a flow changed since is refused (409 version_conflict).
Create a lead campaign POST
Creates a lead campaign as a draft, with the account’s own traffic on it. Attach buyers and publishers, then POST /lead-campaigns/{id}/resume to activate it. `externalId` must be unique in the account (409 external_id_taken).