Agents

List Agent Phone Numbers

Lists the inbound and outbound phone numbers linked to an agent. Every version of the agent uses them: inbound calls run on its latest published version.

get/v1/agents/{agentId}/phone-numbers

Request

  • Base URL: https://api.dialnexa.com
  • URL: https://api.dialnexa.com/v1/agents/{agentId}/phone-numbers
  • Auth: HTTP bearer

Path parameters

agentIdstring required
Example:agent_2g7Xy3tY53gRlp

Agent ID from List Agents.

Response

Successful response.

successboolean required
errorboolean required
statusCodeinteger required
messagestring required
timestampstring date-time required

Example response

{
  "data": {
    "inbound": [
      {
        "id": "phn_abc123",
        "phone_number": "9876543210",
        "country_iso": "91"
      }
    ],
    "outbound": [
      {
        "id": "phn_abc123",
        "phone_number": "9876543210",
        "country_iso": "91"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.