---
title: "Sync Phone Numbers"
method: POST
path: "/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/sync"
tags: ["main", "organizations"]
---

# Sync Phone Numbers

`POST /api/v1/organizations/telephony-configs/{config_id}/phone-numbers/sync`

## Request

- Base URL: `https://app.dograh.com`
- URL: `https://app.dograh.com/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/sync`
- Auth: none declared

Import the provider account's numbers onto this configuration.

Adds rows for numbers the account holds and refreshes the ones already
here. Nothing is removed: numbers the provider no longer lists come back
as ``missing_at_provider`` for the operator to act on.

## Path parameters

- `config_id` integer, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Response `200`

Successful Response

- PhoneNumberSyncResponse: Outcome of importing the provider account's numbers into a configuration. Rows are only ever added or refreshed. A number the provider no longer reports is listed under ``missing_at_provider`` for the operator to act on; the sync never deactivates or deletes it, because a transient listing gap must not silence a live number.
  - `created` PhoneNumberResponse[], required
    - `id` integer, required
    - `telephony_configuration_id` integer, required
    - `address` string, required
    - `address_normalized` string, required
    - `address_type` string, required
    - `country_code` string, nullable
    - `label` string, nullable
    - `inbound_workflow_id` integer, nullable
    - `inbound_workflow_name` string, nullable
    - `telephony_trunk_id` integer, nullable
    - `is_active` boolean, required
    - `is_default_caller_id` boolean, required
    - `extra_metadata` object, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `provider_sync` ProviderSyncStatus: Result of pushing a phone-number change to the upstream provider. Returned alongside create/update responses when the route attempted to sync inbound webhook configuration. ``ok=False`` is a warning, not a fatal error — the DB write succeeded.
      - `ok` boolean, required
      - `message` string, nullable
  - `updated` PhoneNumberResponse[], required
    - `id` integer, required
    - `telephony_configuration_id` integer, required
    - `address` string, required
    - `address_normalized` string, required
    - `address_type` string, required
    - `country_code` string, nullable
    - `label` string, nullable
    - `inbound_workflow_id` integer, nullable
    - `inbound_workflow_name` string, nullable
    - `telephony_trunk_id` integer, nullable
    - `is_active` boolean, required
    - `is_default_caller_id` boolean, required
    - `extra_metadata` object, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `provider_sync` ProviderSyncStatus: Result of pushing a phone-number change to the upstream provider. Returned alongside create/update responses when the route attempted to sync inbound webhook configuration. ``ok=False`` is a warning, not a fatal error — the DB write succeeded.
      - `ok` boolean, required
      - `message` string, nullable
  - `skipped` PhoneNumberSyncSkipped[], required
    - `address` string, required
    - `reason` string, required
  - `missing_at_provider` PhoneNumberResponse[], required
    - `id` integer, required
    - `telephony_configuration_id` integer, required
    - `address` string, required
    - `address_normalized` string, required
    - `address_type` string, required
    - `country_code` string, nullable
    - `label` string, nullable
    - `inbound_workflow_id` integer, nullable
    - `inbound_workflow_name` string, nullable
    - `telephony_trunk_id` integer, nullable
    - `is_active` boolean, required
    - `is_default_caller_id` boolean, required
    - `extra_metadata` object, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `provider_sync` ProviderSyncStatus: Result of pushing a phone-number change to the upstream provider. Returned alongside create/update responses when the route attempted to sync inbound webhook configuration. ``ok=False`` is a warning, not a fatal error — the DB write succeeded.
      - `ok` boolean, required
      - `message` string, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

## Changes

- **2026-11-03** `faa00cf76fcb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dograh/apis/dograh-api/changes/api/v1/organizations/telephony-configs/:config_id/phone-numbers/sync/post.md)

---

[API](https://skmtc.dev/dograh/apis/dograh-api.md) - [All operations](https://skmtc.dev/dograh/apis/dograh-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dograh/apis/dograh-api/revisions/faa00cf76fcb?raw)
