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

# Bulk Upload Phone Numbers

> Bulk upload phone numbers from CSV file.

CSV Format:
phone_number,provider,enable_outbound,outbound_address,outbound_transport,destination_country,media_encryption,krisp_enabled,auth_username,auth_password

Example CSV:
```
phone_number,provider,enable_outbound,outbound_address,outbound_transport,destination_country,media_encryption,krisp_enabled
+15551234567,twilio,true,sip.twilio.com,TCP,US,ALLOW,true
+15559876543,vonage,true,sip.nexmo.com,TLS,US,ALLOW,true
+918012345678,plivo,true,sip.plivo.com,TLS,IN,REQUIRE,true
```

This endpoint processes the CSV file and registers all phone numbers in bulk.
Each row is processed independently - partial success is possible.



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json post /agents/{agent_id}/phone-numbers/bulk-upload
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /agents/{agent_id}/phone-numbers/bulk-upload:
    post:
      tags:
        - agent-phone-numbers
      summary: Bulk Upload Phone Numbers
      description: >-
        Bulk upload phone numbers from CSV file.


        CSV Format:

        phone_number,provider,enable_outbound,outbound_address,outbound_transport,destination_country,media_encryption,krisp_enabled,auth_username,auth_password


        Example CSV:

        ```

        phone_number,provider,enable_outbound,outbound_address,outbound_transport,destination_country,media_encryption,krisp_enabled

        +15551234567,twilio,true,sip.twilio.com,TCP,US,ALLOW,true

        +15559876543,vonage,true,sip.nexmo.com,TLS,US,ALLOW,true

        +918012345678,plivo,true,sip.plivo.com,TLS,IN,REQUIRE,true

        ```


        This endpoint processes the CSV file and registers all phone numbers in
        bulk.

        Each row is processed independently - partial success is possible.
      operationId: >-
        bulk_upload_phone_numbers_agents__agent_id__phone_numbers_bulk_upload_post
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Agent Id
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_bulk_upload_phone_numbers_agents__agent_id__phone_numbers_bulk_upload_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkUploadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    Body_bulk_upload_phone_numbers_agents__agent_id__phone_numbers_bulk_upload_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
          description: CSV file with phone numbers
      type: object
      required:
        - file
      title: >-
        Body_bulk_upload_phone_numbers_agents__agent_id__phone_numbers_bulk_upload_post
    BulkUploadResponse:
      properties:
        total_uploaded:
          type: integer
          title: Total Uploaded
        successful:
          type: integer
          title: Successful
        failed:
          type: integer
          title: Failed
        results:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Results
      type: object
      required:
        - total_uploaded
        - successful
        - failed
        - results
      title: BulkUploadResponse
      description: Response for bulk phone number upload.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````