Numbersv4

Get a number purchase

GET/numbers/purchases/{purchaseId}

A purchase made with POST /numbers. Its numbers appear in GET /numbers once it's completed. OAuth apps need numbers:read.

Path parameters

purchaseIdRequiredstring

Purchase id (pur_...).

Headers

AuthorizationRequiredstring

Your API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.

Bearer

Returns

dataoptionalNumberPurchase
purchase_idRequiredstring

Purchase id (pur_...).

statusRequiredstring

completed once every number is an active channel; failed when the carrier refused the order.

"provisioning""completed""failed"
phone_numbersRequiredstring[]
productsRequiredTelecomProduct[]
erroroptionalobject

Present on a failed purchase.

codeoptionalstring
created_atRequiredinteger

Epoch ms.

Response codes

200The purchase
400`invalid_purchase_id`.
401Your API key is missing or invalid. Pass it as a bearer token.
404`purchase_not_found`.
502`upstream_unavailable`: the carrier network couldn't be reached. Retry with backoff.

Sends a live request with your values and shows the real response below. Your key is stored only in this browser.

Request
curl -X GET https://api.blooio.com/v4/numbers/purchases/obj_a1b2c3d4 \
Response objectexample
{  "data": {    "purchase_id": "obj_a1b2c3d4",    "status": "provisioning",    "phone_numbers": [      "+15551234567"    ],    "products": [      "sms"    ],    "error": {      "code": "number_unavailable"    },    "created_at": 0  }}