> ## Documentation Index
> Fetch the complete documentation index at: https://dialnexa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Phone Number Details

> Fetch one phone number by ID.

Read only
Returns the stored record for a single phone number: `country_iso` (the country calling code without a plus, for example `91`) and `phone_number` (the national number as a string of digits, for example `9876543210`; the E.164 form is `+` followed by both), its `status`, the `telephony_provider_id`, the `inbound_agent_id` and `outbound_agent_id` it is linked to (inbound calls run on that agent's latest published version), the rental window (`rental_start_date`, `rental_end_date`, `rental_status`), whether a SIP trunk is linked, the dashboard `nickname`, and `created_at`. Rental pricing is not part of this record; see [Phone Number Pricing](https://dialnexa.com/docs/api-reference/v1/phone-numbers/list-pricing.md).

## 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.
* **Rental tracking**: read `rental_start_date`, `rental_end_date` and `rental_status` to see when a rented number comes up for renewal.
* **Compliance reviews**: confirm the number's country calling code (`country_iso`) and provider match the use case it is being used for.

For the entire portfolio of numbers on the workspace, use [List Phone Numbers](https://dialnexa.com/docs/api-reference/v1/phone-numbers/list.md).

## Path parameters

| Parameter | Description |
| - | - |
| `id` | The phone number ID, for example `phn_mfk3p8z2c4v6bn`. |

## Errors

* `404 Not Found` is returned when the number does not exist on this workspace. A number that belongs to another workspace is reported the same way.

## Related endpoints

* [List Phone Numbers](https://dialnexa.com/docs/api-reference/v1/phone-numbers/list.md): see every number on the workspace.
* [Search Available Numbers](https://dialnexa.com/docs/api-reference/v1/phone-numbers/search-plivo.md): find provider numbers available for purchase.
* [Link SIP Trunk](https://dialnexa.com/docs/api-reference/v1/phone-numbers/link-sip-trunk.md): connect a bring-your-own number.
* [Buy a Phone Number](https://dialnexa.com/docs/api-reference/v1/phone-numbers/buy.md): purchase a new number.
* [Delete Phone Number](https://dialnexa.com/docs/api-reference/v1/phone-numbers/delete.md): remove this number from the workspace.


## OpenAPI

````yaml GET /v1/organization-phone-numbers/{id}
openapi: 3.0.0
info:
  title: DialNexa API
  description: Public `/v1` REST API for the DialNexa voice AI platform.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: Agents
  - name: Batch Calls
  - name: Calls
  - name: Knowledge Base
  - name: Languages
  - name: LLMs
  - name: Phone Numbers
  - name: Organization Folders
  - name: Transcribers
  - name: Webhooks
  - name: Voices
  - name: Workflows
  - name: Workflow Leads
  - name: Authentication
  - name: Agent Builder
  - name: Agent Evaluations
paths:
  /v1/organization-phone-numbers/{id}:
    get:
      tags:
        - Phone Numbers
      summary: Get Phone Number Details
      description: Returns one workspace phone number and its routing configuration.
      operationId: getPhoneNumber
      parameters:
        - name: id
          required: true
          in: path
          description: Phone number ID
          schema:
            example: phn_mfk3p8z2c4v6bn
            type: string
      responses:
        '200':
          description: Phone number returned successfully.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                  - statusCode
                  - message
                  - data
                  - timestamp
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  error:
                    type: boolean
                    enum:
                      - false
                  statusCode:
                    type: integer
                    example: 200
                  message:
                    type: string
                    example: Success
                  data:
                    $ref: '#/components/schemas/PhoneNumberRecord'
                  timestamp:
                    type: string
                    format: date-time
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    error: false
                    statusCode: 200
                    message: Success
                    data:
                      id: phn_mfk3p8z2c4v6bn
                      phone_number: '9876543210'
                      status: active
                      country_iso: '91'
                      telephony_provider_id: mh00mke5j83neo
                      organization_id: o14XKPP84rt22g
                      inbound_agent_id: null
                      outbound_agent_id: agent_2g7Xy3tY53gRlp
                      rental_start_date: '2026-09-17'
                      rental_end_date: '2026-10-17'
                      rental_status: active
                      sip_trunk_enabled: false
                      nickname: null
                      is_deleted: false
                      deleted_at: null
                      deleted_by: null
                      created_at: '2026-09-17T05:52:18.634Z'
                      updated_at: '2026-09-17T05:52:18.634Z'
                    timestamp: '2026-09-07T06:00:00.000Z'
        '401':
          description: Unauthorized - missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 401 Unauthorized
                  value:
                    statusCode: 401
                    error: true
                    success: false
                    data: []
                    message: Invalid API key
                    errors: []
        '404':
          description: Phone number not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 404 Not Found
                  value:
                    statusCode: 404
                    error: true
                    success: false
                    data: []
                    message: >-
                      Failed to fetch phone number: Phone number not found or
                      does not belong to your organization
                    errors: []
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 500 Internal Server Error
                  value:
                    statusCode: 500
                    error: true
                    success: false
                    data: []
                    message: Internal server error
                    errors: []
      security:
        - bearer: []
components:
  schemas:
    PhoneNumberRecord:
      type: object
      description: >-
        A phone number owned by the workspace, as stored. Returned by the list
        and get endpoints.
      properties:
        id:
          type: string
          example: phn_mfk3p8z2c4v6bn
          description: Signed phone number ID.
        phone_number:
          type: string
          example: '9876543210'
          pattern: ^[0-9]+$
          description: >-
            National number without the country calling code or a plus sign, as
            a string of digits. Build the E.164 form as + followed by
            country_iso and phone_number.
        status:
          type: string
          enum:
            - pending
            - active
          description: Provisioning status of the number.
        country_iso:
          type: string
          example: '91'
          description: >-
            Country calling code without the plus sign, for example 91 or 1.
            This is not an ISO country code.
        telephony_provider_id:
          type: string
          description: Telephony provider the number belongs to.
        organization_id:
          type: string
          description: Owning organization.
        inbound_agent_id:
          type: string
          nullable: true
          description: >-
            Agent that answers inbound calls on this number, on its latest
            published version; null when none is linked.
        outbound_agent_id:
          type: string
          nullable: true
          description: Agent that can call from this number; null when none is linked.
        rental_start_date:
          type: string
          format: date
          nullable: true
          example: '2026-09-17'
        rental_end_date:
          type: string
          format: date
          nullable: true
          example: '2026-10-17'
        rental_status:
          type: string
          nullable: true
          enum:
            - active
            - expired
            - available_for_reassignment
        sip_trunk_enabled:
          type: boolean
          description: Whether a SIP trunk is linked to this number.
        nickname:
          type: string
          nullable: true
          description: Label set in the dashboard.
        is_deleted:
          type: boolean
        deleted_at:
          type: string
          format: date-time
          nullable: true
        deleted_by:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - phone_number
        - status
    ErrorResponse:
      type: object
      description: Error body on endpoints without response filtering.
      properties:
        statusCode:
          type: integer
          example: 404
        error:
          type: boolean
          enum:
            - true
        success:
          type: boolean
          enum:
            - false
        data:
          oneOf:
            - type: object
              properties:
                code:
                  type: string
                  description: Machine-readable refusal code.
            - type: array
              items: {}
          description: >-
            For a coded refusal, an object with code and the details listed for
            that code. Otherwise an empty array.
        message:
          type: string
        errors:
          type: array
          items:
            type: string
          description: Validation messages for a 400. Empty for other errors.
        validation_errors:
          type: array
          description: >-
            Present when uploaded rows fail number validation (batch and
            workflow lead uploads): one group per distinct error.
          items:
            type: object
            properties:
              error:
                type: string
              rows:
                type: array
                items:
                  type: integer
                description: Row numbers with this error.
              phone_numbers:
                type: array
                items:
                  type: string
        invalid_row_count:
          type: integer
          description: 'Present with validation_errors: how many rows failed.'
      required:
        - statusCode
        - error
        - success
        - data
        - message
        - errors
  securitySchemes:
    bearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.