Give a number back to the carrier
Needs the numbers-purchase:write scope. About scopes
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.
keyAuthorizationBearer <traki_account_…>id*stringuuidSuccess
application/json- response
id*stringuuidnumberId*stringuuidnumber*stringstate*stringchecksNote*string|nullrequestedAt*stringconfirmedAt*string|nullcurl -X POST 'https://api.traki.io/v1/account/numbers/497f6eca-6276-4993-bfeb-53cbbbba6f08/carrier-release' \ -H "Authorization: Bearer $TRAKI_KEY"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "numberId": "4960e75f-5738-4a19-bb92-2459f0660f6c", "number": "string", "state": "string", "checksNote": "string", "requestedAt": "string", "confirmedAt": "string"}Order numbers (costs money) POST
Buys the numbers chosen from a search (`phoneNumbers`), or a `quantity` (returned numbers the account holds are reused first and the carrier supplies the rest), through the portal’s own purchase flow: the plan’s number limits (402 limit_reached), a card on file (402 card_required) and the balance for setup fees apply as they do in the portal. Each chosen number comes back purchased or failed with its reason. An order for a publisher without purchase bypass waits in `pending_approval`. Needs an Idempotency-Key: the same request sent again with the same key answers as the first did and buys once.
A call campaign’s routing and bidding settings GET
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.