---
title: "Sync Trunk To Livekit"
method: POST
path: "/v1/sip/trunk/{trunk_id}/sync"
tags: ["SIP", "SIP"]
---

# Sync Trunk To Livekit

`POST /v1/sip/trunk/{trunk_id}/sync`

## Request

- Base URL: `https://api.call2me.app`
- URL: `https://api.call2me.app/v1/sip/trunk/{trunk_id}/sync`
- Auth: HTTP bearer

Sync a SIP trunk configuration to LiveKit SIP server.

This creates/updates the inbound and outbound trunk configuration
in LiveKit based on our database trunk settings.

## Path parameters

- `trunk_id` string, required

## Response `200`

Successful Response

- SIPTrunkSyncResponse: Response after syncing trunk to LiveKit.
  - `success` boolean, required
  - `livekit_trunk_id` string, nullable
  - `message` string, required

## Other responses

- `422`: Validation Error

---

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