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
purchaseIdRequiredstringPurchase id (pur_...).
Headers
AuthorizationRequiredstringYour 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
dataoptionalNumberPurchasepurchase_idRequiredstringPurchase id (pur_...).
statusRequiredstringcompleted once every number is an active channel; failed when the carrier refused the order.
"provisioning""completed""failed"phone_numbersRequiredstring[]productsRequiredTelecomProduct[]erroroptionalobjectPresent on a failed purchase.
erroroptionalobjectPresent on a failed purchase.
codeoptionalstringcreated_atRequiredintegerEpoch 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.
curl -X GET https://api.blooio.com/v4/numbers/purchases/obj_a1b2c3d4 \{ "data": { "purchase_id": "obj_a1b2c3d4", "status": "provisioning", "phone_numbers": [ "+15551234567" ], "products": [ "sms" ], "error": { "code": "number_unavailable" }, "created_at": 0 }}