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

# Twilio Register

> Registers Twilio credentials (SID and Token) for the agency account.



## OpenAPI

````yaml POST /agency/twilio/register/
openapi: 3.1.0
info:
  title: CloserX.ai API
  description: >-
    The CloserX.ai API provides programmatic access to manage AI-powered calling
    operations, including agent creation, campaign management, contact handling,
    telephony integration, and more. This API enables seamless automation and
    integration with CRM systems, telephony providers, and other third-party
    services for enhanced client communication and business operations.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.closerx.ai/api
security:
  - api_key: []
paths:
  /agency/twilio/register/:
    post:
      summary: Twilio Register
      description: Registers Twilio credentials (SID and Token) for the agency account.
      parameters:
        - name: Company-Name
          in: header
          required: true
          description: Schema name for multi-tenancy
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TwilioRegisterRequest'
      responses:
        '200':
          description: Twilio SID and token updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TwilioRegisterResponse'
              example:
                success: true
                message: twilio sid and twilio token updated sucessfully
                data: {}
        '400':
          description: Invalid Twilio SID or Token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    TwilioRegisterRequest:
      type: object
      required:
        - twilio_sid
        - twilio_token
      properties:
        twilio_sid:
          type: string
          description: Twilio Account SID
        twilio_token:
          type: string
          description: Twilio Auth Token
    TwilioRegisterResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: twilio sid and twilio token updated sucessfully
        data:
          type: object
          example: {}
    Error:
      required:
        - success
        - message
        - data
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: api_key

````