Purchases a number returned by the search endpoint. If the country/type requires compliance, include an address (when needed) and a list of requirement values — text answers and document IDs from /api/v1/phone-numbers/documents. Subject to a per-workspace cap on active numbers purchased via the API; when the cap is reached you receive HTTP 403 with data.error = purchase_limit_reached plus the actual limit and current count in the response body.
Documentation Index
Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt
Use this file to discover all available pages before exploring further.
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
The exact E.164 number to purchase, returned by GET /phone-numbers/search. The endpoint refuses if the same number already exists in your inventory or as an external trunk.
"+390790080041"
ISO 3166-1 alpha-2 country code the number belongs to. Used to fetch regulatory requirements and as the default for the address country_code.
"IT"
Number category from the search result. Drives which compliance requirements apply.
local, toll_free, mobile, national Monthly fee value carried over from the search result. Stored on the inventory row for billing display. The first active number in your workspace is free regardless of this value.
Capability flags object copied from the search result (voice, sms, mms, etc.). Indicates which channels the number supports. Optional — when omitted, channel capabilities are unknown until the number is purchased.
Optional human-friendly location label, e.g. Sassari, Sardegna. Defaults to the country code if omitted.
Compliance address. Required when the country/type combination needs one (check GET /phone-numbers/search/requirements). All fields are individually optional — provide as many as the carrier requires.
Compliance requirement values. One entry per requirement listed in GET /phone-numbers/search/requirements. Each entry identifies the requirement (by key slug or stable requirement_id) and supplies the value (text answer or uploaded document id).
Number purchased
Indicates whether the request completed successfully. True for successful responses; false for documented error responses.
A phone number connected to your workspace. Always returned by inventory and lookup endpoints. The shape is the same for purchased and external (trunk) numbers — fields that don't apply to externals come back as null.