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

# Add Twilio Number

> Add Twilio Number.

### Authorizations

<ParamField header="X-Api-Key" type="string" required>
  Your Agni API key used to authenticate the request. Pass it in the `X-Api-Key` header. Find or rotate it from your Ravan AI account settings.
</ParamField>

***

### Body

<ParamField body="phone_number" type="string" required>
  The phone number in E.164 format. Example: `+14157774444`.
</ParamField>

<ParamField body="number_sid" type="string" required>
  The Twilio phone number SID for the number you are connecting.
</ParamField>

<ParamField body="friendly_name" type="string">
  A human-readable label for the phone number. Use a name that helps your team identify its purpose.
</ParamField>

<ParamField body="price" type="number">
  The purchase price or configured price for the phone number.
</ParamField>

***

### Response

<ResponseField name="success" type="boolean">
  Whether the request succeeded.
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable status message.
</ResponseField>

<ResponseField name="data" type="object">
  Returned phone number object.
</ResponseField>


## OpenAPI

````yaml POST /api/v1/phone-numbers/add-twilio
openapi: 3.0.1
info:
  title: Agni API
  version: 1.0.0
  description: >-
    Agni API for managing agents, tools, widget settings, telephony, and
    integrations.
servers:
  - url: https://api.ravan.ai
security:
  - X-Api-Key: []
tags:
  - name: AgentService
  - name: AgentToolService
  - name: WidgetSettingsService
  - name: PhoneService
  - name: AppointmentService
  - name: GHLService
  - name: CalComService
  - name: CampaignService
  - name: ContactService
  - name: CallingService
  - name: RAGService
  - name: ModelService
  - name: HealthService
paths:
  /api/v1/phone-numbers/add-twilio:
    post:
      tags:
        - PhoneService
      summary: Add Twilio Number
      operationId: AddTwilioNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddTwilioNumberRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddTwilioNumberResponse'
components:
  schemas:
    AddTwilioNumberRequest:
      type: object
      required:
        - phone_number
        - number_sid
      properties:
        phone_number:
          type: string
          description: Phone number in E.164 format
        number_sid:
          type: string
          description: Twilio number SID
        friendly_name:
          type: string
          description: Friendly name
        price:
          type: number
          description: Monthly price
    AddTwilioNumberResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          $ref: '#/components/schemas/PurchasedNumber'
    PurchasedNumber:
      type: object
      properties:
        id:
          type: string
          description: Record ID
        telephony_id:
          type: string
          description: Associated telephony ID
        subscription_id:
          type: string
          description: Associated subscription ID
        inbound_trunk_id:
          type: string
          description: Inbound SIP trunk ID
        outbound_trunk_id:
          type: string
          description: Outbound SIP trunk ID
        number:
          type: string
          description: Phone number in E.164 format
        friendly_name:
          type: string
          description: Human-readable label
        per_minute_price_inbound:
          type: integer
          format: int32
          description: Per-minute inbound price
        per_minute_price_outbound:
          type: integer
          format: int32
          description: Per-minute outbound price
        price:
          type: integer
          format: int32
          description: Monthly price
        region:
          type: string
          description: Region
        iso_country:
          type: string
          description: ISO country code
        is_active:
          type: boolean
          description: Whether the number is active
        created_at:
          type: string
          description: Creation timestamp
        updated_at:
          type: string
          description: Last update timestamp
  securitySchemes:
    X-Api-Key:
      type: apiKey
      in: header
      name: X-Api-Key

````