POST
/
api
/
v1
/
assistants
/
organization
/
phone-numbers
/
sync
{
  "success": true,
  "message": "<string>",
  "synced_count": 123
}
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.
Response
{
  "success": true,
  "message": "Successfully synced 3 phone numbers from Twilio",
  "synced_count": 3
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

Response model for syncing phone numbers.