---
title: "Create Sip Trunk"
method: POST
path: "/v1/sip-trunks"
tags: ["SIP Trunks", "SIP Trunks"]
---

# Create Sip Trunk

`POST /v1/sip-trunks`

## Request

- Base URL: `https://api.call2me.app`
- URL: `https://api.call2me.app/v1/sip-trunks`
- Auth: HTTP bearer

Create a new SIP trunk.

The trunk's SIP host is DNS-checked first: an unresolvable host (e.g. a typo
or garbage value) creates the trunk as INACTIVE and skips the LiveKit sync,
so it never enters the sync loop where it would fail on every run. Fix the
server and PATCH active=true (or re-test) to bring it live.

## Request body

- SIPTrunkCreate: Request model for creating a SIP trunk.
  - `name` string, required
  - `sip_server` string, required
  - `sip_username` string, nullable
  - `sip_password` string, nullable
  - `sip_transport` string
  - `outbound_caller_id` string, nullable

## Response `201`

Successful Response

- SIPTrunkResponse: Response model for SIP trunk (password hidden).
  - `trunk_id` string, required
  - `name` string, required
  - `sip_server` string, required
  - `sip_username` string, nullable, required
  - `sip_transport` string, required
  - `outbound_caller_id` string, nullable, required
  - `active` boolean, required
  - `phone_number_count` integer
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, 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)
