Skip to main content
GET
/
organization-phone-numbers
/
{id}
Get a phone number
curl --request GET \
  --url https://api.dialnexa.com/v1/organization-phone-numbers/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "phn_abc123",
  "phone_number": "+912234567890",
  "label": "Main Support Line",
  "agent_id": "agt_abc123",
  "status": "active",
  "provider": "twilio",
  "created_at": "2024-03-01T10:00:00.000Z",
  "nickname": "Sales Line"
}
Returns the full record for a single purchased phone number: the E.164 phone_number, the country_code, the type (local, toll-free, or mobile), the monthly rental cost, the supported capabilities (voice, SMS where available), the display nickname, the currently assigned inbound_agent_id, and the purchase timestamp.

When to use this

  • Number management UIs: render the per-number detail view in a phone-number management page.
  • Routing audits: verify which agent is currently handling inbound calls on a specific number before making changes.
  • Cost attribution: pull monthly_cost_usd to attribute telephony spend per workspace or per use case in internal reports.
  • Compliance reviews: confirm the number’s country and capabilities match the use case it is being used for.
For the entire portfolio of numbers on the workspace, use List Phone Numbers.

Path parameters

ParameterDescription
idThe phone number ID, for example phn_f7w2kx5mb9qz.

Errors

  • 404 Not Found is returned when the number does not exist on this workspace.
  • 403 Forbidden is returned when the API key cannot read phone number records.

Request

curl "https://api.dialnexa.com/v1/organization-phone-numbers/phn_f7w2kx5mb9qz" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "id": "phn_f7w2kx5mb9qz",
  "phone_number": "+912234567890",
  "country_code": "IN",
  "type": "local",
  "monthly_cost_usd": "1.15",
  "capabilities": ["voice"],
  "nickname": "Mumbai Support",
  "inbound_agent_id": "agt_k7m2nq9xw4p8",
  "created_at": "2024-01-15T07:00:00.000Z"
}

Authorizations

Authorization
string
header
required

Pass your API key as a Bearer token in the Authorization header.

Path Parameters

id
string
required

Response

Success.

id
string
Example:

"phn_abc123"

phone_number
string
Example:

"+912234567890"

label
string | null
Example:

"Main Support Line"

agent_id
string | null
Example:

"agt_abc123"

status
enum<string>

Phone number provisioning status.

Available options:
pending,
active
Example:

"active"

provider
string
Example:

"twilio"

created_at
string<date-time>
Example:

"2024-03-01T10:00:00.000Z"

nickname
string | null

Human-readable nickname shown in dashboard selectors and phone number tables.

Maximum string length: 255
Example:

"Sales Line"