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

# List phone numbers

> List phone numbers for an account the authenticated user can access.



## OpenAPI

````yaml /openapi.json get /api/numbers/{accountSid}
openapi: 3.1.0
info:
  title: UponAI Platform API
  version: '2026-04-20'
  description: >-
    Programmatic control plane for configuring UponAI agents, LLM
    configurations, conversation flows, knowledge bases, calls, chats, voices,
    and test tooling. All endpoints require a bearer token obtained from your
    profile settings.
servers:
  - url: https://api.upon-ai.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Calls
    description: Initiate and manage UponAI powered voice and web calls.
  - name: Agents
    description: Configure agents that power calls and web sessions.
  - name: LLM Models
    description: Manage reusable large language model configurations for agents.
  - name: Chat Agents
    description: Configure agents for browser and messaging chat sessions.
  - name: Chats
    description: Start and manage live chat sessions.
  - name: Conversation Flows
    description: Build and maintain reusable dialog graphs for agents.
  - name: Knowledge Bases
    description: Store and curate grounded knowledge sources.
  - name: Voices
    description: Discover, search, add, and clone speech synthesis voices.
  - name: Test Case Definitions
    description: Define simulation test cases for response engines.
  - name: Test Runs
    description: Retrieve results for individual and batch test runs.
  - name: Account
    description: Account level utilities and limits.
  - name: Phone Numbers
    description: List and assign phone numbers to agents.
paths:
  /api/numbers/{accountSid}:
    parameters:
      - $ref: '#/components/parameters/AccountSidPath'
    get:
      tags:
        - Phone Numbers
      summary: List phone numbers
      description: List phone numbers for an account the authenticated user can access.
      responses:
        '200':
          description: Phone numbers for the requested account.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PhoneNumber'
        '403':
          description: The caller cannot access the requested account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    AccountSidPath:
      name: accountSid
      in: path
      required: true
      schema:
        type: string
      description: Account SID that owns the phone numbers.
  schemas:
    PhoneNumber:
      type: object
      properties:
        id:
          type: integer
        number:
          type: string
        base_number:
          type: string
        account_sid:
          type: string
        workspace_id:
          type: integer
        agent_id:
          type: string
          nullable: true
        default_agent_id:
          type: string
          nullable: true
        inbound_agent_id:
          type: string
          nullable: true
        inbound_agents:
          type: array
          items:
            $ref: '#/components/schemas/AgentRef'
        outbound_agents:
          type: array
          items:
            $ref: '#/components/schemas/AgentRef'
        inbound_agent_version:
          type: integer
          nullable: true
        outbound_agent_version:
          type: integer
          nullable: true
        application_sid:
          type: string
          nullable: true
        phone_number_sid:
          type: string
          nullable: true
        inbound_webhook_url:
          type: string
          format: uri
          nullable: true
        is_time_routing_enabled:
          type: boolean
        platform_import_error:
          type: boolean
        platform_import_error_message:
          type: string
          nullable: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
    AgentRef:
      type: object
      properties:
        agent_id:
          type: string
        agent_version:
          type: integer
        weight:
          type: number
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Generate tokens from your profile settings at app.uponai.com.

````