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

# List phone number mappings

> Returns available phone numbers for voice simulations with their index mappings.
Use these indices when configuring persona caller phone numbers.

- **Inbound**: Phone numbers Coval uses to call your agent
- **Outbound**: Phone numbers your agent can call to reach the simulated persona




## OpenAPI

````yaml /api-reference/v1/personas-v1.yaml get /personas/phone-numbers
openapi: 3.0.3
info:
  title: Coval Personas API
  version: 1.0.0
  description: |
    Manage simulated personas used in voice and text evaluations.
  contact:
    name: Coval API Support
    url: https://coval.dev
    email: support@coval.dev
servers:
  - url: https://api.coval.dev/v1
    description: Production server
security:
  - ApiKeyAuth: []
tags:
  - name: Personas
    description: Persona CRUD operations
paths:
  /personas/phone-numbers:
    get:
      tags:
        - Personas
      summary: List phone number mappings
      description: >
        Returns available phone numbers for voice simulations with their index
        mappings.

        Use these indices when configuring persona caller phone numbers.


        - **Inbound**: Phone numbers Coval uses to call your agent

        - **Outbound**: Phone numbers your agent can call to reach the simulated
        persona
      operationId: listPersonasPhoneNumbers
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPhoneNumbersResponse'
              example:
                phone_numbers:
                  inbound:
                    - index: 1
                      phone_number: '+16504471573'
                    - index: 2
                      phone_number: '+16506400392'
                  outbound:
                    - index: 1
                      phone_number: '+14158734019'
                    - index: 2
                      phone_number: '+17199853850'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    ListPhoneNumbersResponse:
      type: object
      description: Response containing available phone number mappings.
      required:
        - phone_numbers
      properties:
        phone_numbers:
          $ref: '#/components/schemas/PhoneNumbersData'
    PhoneNumbersData:
      type: object
      description: Container for inbound and outbound phone number lists.
      required:
        - inbound
        - outbound
      properties:
        inbound:
          type: array
          description: Phone numbers for inbound voice simulations (Coval calls your agent)
          items:
            $ref: '#/components/schemas/PhoneNumberMapping'
        outbound:
          type: array
          description: >-
            Phone numbers for outbound voice simulations (your agent calls
            Coval)
          items:
            $ref: '#/components/schemas/PhoneNumberMapping'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Error code
              example: INVALID_ARGUMENT
            message:
              type: string
              description: Human-readable error message
              example: Invalid voice_name 'invalid'
    PhoneNumberMapping:
      type: object
      description: A phone number with its 1-based index for user reference.
      required:
        - index
        - phone_number
      properties:
        index:
          type: integer
          minimum: 1
          description: 1-based index for referencing this phone number
          example: 1
        phone_number:
          type: string
          description: E.164 formatted phone number
          example: '+16504471573'
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHENTICATED
              message: Missing or invalid API key
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INTERNAL
              message: An unexpected error occurred
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````