A call campaign’s routing and bidding settings
Needs the routing:read scope. About scopes
How a call picks among the campaign’s buyers (routing mode, bid type, floor, ceiling and auction timeout), retries and ring times, the call flow it runs, and each buyer’s tier, weight and bid.
keyAuthorizationBearer <traki_account_…>id*stringuuidSuccess
application/json- response
campaignId*stringuuidroutingMode*stringbidType*stringbidFloor*string|nullbidCeiling*string|nullbidTimeoutMs*integer-9007199254740991 <= value <= 9007199254740991duplicateWindowSec*integer-9007199254740991 <= value <= 9007199254740991retryEnabled*booleanringTimeoutSec*integer-9007199254740991 <= value <= 9007199254740991routingBudgetSec*integer-9007199254740991 <= value <= 9007199254740991maxCallSec*|nullcallFlowId*|nullbuyers*array<>version*stringupdatedAt*stringcurl 'https://api.traki.io/v1/account/call-campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/routing' \ -H "Authorization: Bearer $TRAKI_KEY"{ "campaignId": "13f8bf6d-dc27-4a04-bffe-6e5b13c19ddf", "routingMode": "string", "bidType": "string", "bidFloor": "string", "bidCeiling": "string", "bidTimeoutMs": -9007199254740991, "duplicateWindowSec": -9007199254740991, "retryEnabled": true, "ringTimeoutSec": -9007199254740991, "routingBudgetSec": -9007199254740991, "maxCallSec": -9007199254740991, "callFlowId": "80fb559f-d693-4e3e-8016-041c1fd3c5c5", "buyers": [ { "buyer": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "tier": -9007199254740991, "weight": -9007199254740991, "bid": "string", "status": "string" } ], "version": "string", "updatedAt": "string"}Give a number back to the carrier POST
Releases a number the account owns at the carrier, for good: it stops ringing and leaves the account’s bill. The portal asks for the release and confirms it in two steps; this route does both. The number must be on no campaign and in no pool (422 number_assigned, pooled_number), and no visitor session may hold it (422 number_leased). `state` is `confirmed`, or `failed` with the carrier’s reason in `checksNote` (the number then stays in the account as returned). To take a number off its campaign without giving it up, use POST /numbers/{id}/release. Needs an Idempotency-Key.
Change a call campaign’s routing PATCH
Changes the routing and bidding settings sent and each named buyer’s tier, weight and bid, and leaves the rest. A buyer not on the campaign answers 404. With `ifVersion`, a change based on an older version of the campaign is refused (409 version_conflict). Archived campaigns cannot be changed.