Phone Numbers
Purchase a Number
Purchase a phone number from your telephony provider and provision it in your DialNexa workspace for inbound and outbound calling.
POST
Purchase a phone number
Purchases a phone number from your telephony provider and provisions it in your DialNexa workspace. The number is immediately available to assign to an agent for handling inbound calls and to use as the outbound caller ID on outbound calls. Numbers are billed monthly, with billing starting on the date of purchase. Use Search Available Numbers first to find a number that fits your needs, then pass the exact E.164
phone_number string to this endpoint.
When to use this
- New deployments: provisioning the first number for a region or use case.
- Capacity expansion: adding numbers to spread outbound volume across multiple caller IDs and avoid spam flagging.
- Per-customer or per-brand numbers: provisioning a dedicated number for a sub-account, partner, or brand.
Pre-flight checklist
Before purchasing, confirm:- The destination country is enabled in Workspace Settings → Telephony Config.
- For outbound calling in regulated regions (India, US toll-free, certain EU countries), KYC and verification are complete. See KYC and outbound readiness.
- The number meets the regulatory requirements for the use case (for example, India 10DLC-equivalent compliance, US toll-free verification).
Body parameters
| Field | Description |
|---|---|
phone_number | E.164 number returned by Search Available Numbers. |
Request example
Errors
400 Bad Requestis returned when the number is no longer available, the country is not enabled on this workspace, or the format is invalid.403 Forbiddenis returned when the workspace has not completed the KYC required for the destination country.409 Conflictis returned when the number was claimed by another buyer between the search and the purchase.
Request
Response
Related endpoints
- Search Available Numbers: find a number to purchase.
- Update Phone Number: assign the number to an inbound agent or set a nickname.
- Release a Number: give the number back to the provider’s pool.
- Purchase a Phone Number guide: end-to-end provisioning walkthrough.
- KYC and outbound readiness: verification required before purchasing in regulated regions.
Authorizations
Pass your API key as a Bearer token in the Authorization header.
Body
application/json
Response
Phone number purchased and provisioned.
Example:
"phn_abc123"
Example:
"+912234567890"
Example:
"Main Support Line"
Example:
"agt_abc123"
Phone number provisioning status.
Available options:
pending, active Example:
"active"
Example:
"twilio"
Example:
"2024-03-01T10:00:00.000Z"
Human-readable nickname shown in dashboard selectors and phone number tables.
Maximum string length:
255Example:
"Sales Line"
Purchase a phone number