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

# List Twilio Numbers

> Lists the phone numbers on a Twilio account and where each one routes today, so you can choose which to connect. Numbers already on a RevRing trunk are flagged.



## OpenAPI

````yaml POST /sip-trunks/connect/twilio/numbers
openapi: 3.1.0
info:
  title: RevRing Voice AI API
  description: >-
    RevRing Voice AI platform API for managing AI voice agents, phone calls, SIP
    trunks, and analytics. Build intelligent voice applications that can handle
    inbound and outbound phone calls with AI-powered conversational agents.
  version: 1.0.0
  contact:
    name: RevRing Support
    url: https://revring.ai
servers:
  - url: https://api.revring.ai/v1
    description: Production API
security:
  - apiKeyAuth: []
tags:
  - name: Messaging Connections
    description: Connect messaging providers so agents can send text messages
  - name: Messages
    description: Send text messages and read your message log
  - name: Conversations
    description: List and clear managed conversation threads
  - name: SIP Trunks
    description: Manage SIP trunks for connecting agents to the phone network
  - name: Agents
    description: Manage AI voice agents and their configuration
  - name: Agent Folders
    description: Organize agents into folders for dashboard navigation
  - name: Calls
    description: Manage and query phone calls
  - name: Analytics
    description: Get analytics and metrics about your calls
  - name: Knowledge Bases
    description: >-
      Manage knowledge bases and sources for agent retrieval-augmented
      generation
  - name: Test Suites
    description: Manage test suites, test cases, and test runs for agent evaluation
  - name: Voices
    description: Browse the voices available to your organization for agent speech
  - name: Webhooks
    description: Webhook delivery settings for your organization
paths:
  /sip-trunks/connect/twilio/numbers:
    post:
      tags:
        - SIP Trunks
      summary: List Twilio Numbers
      description: >-
        Lists the phone numbers on a Twilio account and where each one routes
        today, so you can choose which to connect. Numbers already on a RevRing
        trunk are flagged.
      operationId: listTwilioNumbers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - twilio
              properties:
                twilio:
                  type: object
                  required:
                    - accountSid
                  description: >-
                    Your Twilio account credentials. Used for this request only
                    and never stored. Provide authToken, or apiKeySid with
                    apiKeySecret.
                  properties:
                    accountSid:
                      type: string
                      example: ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                      description: Twilio Account SID (AC...)
                    authToken:
                      type: string
                      description: Twilio Auth Token
                    apiKeySid:
                      type: string
                      description: Twilio API key SID (SK...), instead of the Auth Token
                    apiKeySecret:
                      type: string
                      description: Secret of the API key
      responses:
        '200':
          description: The account's numbers
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        e164:
                          type: string
                          example: '+14155550123'
                        friendlyName:
                          type: string
                        voice:
                          type: boolean
                          description: Whether the number can take voice calls
                        routing:
                          type: string
                          enum:
                            - trunk
                            - application
                            - webhook
                            - none
                          description: Where the number's calls go today
                        routingDetail:
                          type: string
                          example: voice webhook example.com
                        onRevRing:
                          type: string
                          nullable: true
                          enum:
                            - this_organization
                            - another_organization
                            - null
                          description: Set when the number is already on a RevRing trunk
        '400':
          description: >-
            Invalid body, or Twilio rejected the credentials
            (invalid_twilio_credentials)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '502':
          description: Twilio could not be reached (twilio_unavailable)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Generate API keys from the RevRing
        dashboard.

````

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