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

# Sync Phone Numbers

> Sync phone numbers from Twilio to local database.

This will import any new phone numbers from your Twilio account
that aren't already in the local database.

This endpoint triggers a synchronization process with your linked Twilio account. It fetches all phone numbers from Twilio and adds any numbers that are not already present in your organization's database.

This is useful for ensuring that your local database is up-to-date with the phone numbers available in your Twilio account. The request does not require a body.

### Response

A successful sync will return a JSON object confirming the operation and stating how many new numbers were added.

```json Response theme={null}
{
  "success": true,
  "message": "Successfully synced 3 phone numbers from Twilio",
  "synced_count": 3
}
```


## OpenAPI

````yaml POST /api/v1/assistants/organization/phone-numbers/sync
openapi: 3.1.0
info:
  title: Qall
  description: A system that uses AI to answer customer Calls.
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/assistants/organization/phone-numbers/sync:
    post:
      tags:
        - assistants
      summary: Sync Organization Phone Numbers
      description: |-
        Sync phone numbers from Twilio to local database.

        This will import any new phone numbers from your Twilio account
        that aren't already in the local database.
      operationId: >-
        sync_organization_phone_numbers_api_v1_assistants_organization_phone_numbers_sync_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncPhoneNumbersResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    SyncPhoneNumbersResponse:
      properties:
        success:
          type: boolean
          title: Success
        message:
          type: string
          title: Message
        synced_count:
          type: integer
          title: Synced Count
      type: object
      required:
        - success
        - message
        - synced_count
      title: SyncPhoneNumbersResponse
      description: Response model for syncing phone numbers.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````