Skip to Content
Developers
Buying numbers

Give a number back to the carrier

Needs the numbers-purchase: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/numbers/{id}/carrier-release

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.

Authorization

key
headerAuthorizationBearer <traki_account_…>

Path Parameters

id*string
Formatuuid

Response Body

Success

application/json
  1. response
id*string
Formatuuid
numberId*string
Formatuuid
number*string
state*string
checksNote*string|null
requestedAt*string
confirmedAt*string|null
Example Request
curl -X POST 'https://api.traki.io/v1/account/numbers/497f6eca-6276-4993-bfeb-53cbbbba6f08/carrier-release' \  -H "Authorization: Bearer $TRAKI_KEY"
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "numberId": "4960e75f-5738-4a19-bb92-2459f0660f6c",  "number": "string",  "state": "string",  "checksNote": "string",  "requestedAt": "string",  "confirmedAt": "string"}