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

# Sync Phone Numbers

> Sync phone numbers from all configured providers (Twilio, Telnyx, and Vonage) to local database.

This will import any new phone numbers from your Twilio, Telnyx, and/or Vonage accounts
that aren't already in the local database.

This endpoint triggers synchronization with all configured telephony providers for your organization. It can import new phone numbers from Twilio, Telnyx, and Vonage accounts and add numbers that are not already present in your organization's database.

This is useful for ensuring that Burki is up-to-date with the phone numbers available in your provider accounts. 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: Twilio: 1, Telnyx: 1, Vonage: 1",
  "synced_count": 3
}
```


## OpenAPI

````yaml POST /api/v1/assistants/organization/phone-numbers/sync
openapi: 3.1.0
info:
  title: Burki
  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 all configured providers (Twilio, Telnyx, and
        Vonage) to local database.


        This will import any new phone numbers from your Twilio, Telnyx, and/or
        Vonage accounts

        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

````