---
title: "Create Trunk"
method: POST
path: "/v4/accounts/{voip_id}/trunks"
tags: ["Trunks"]
---

# Create Trunk

`POST /v4/accounts/{voip_id}/trunks`

## Request

- Base URL: `https://api.phone.com`
- URL: `https://api.phone.com/v4/accounts/{voip_id}/trunks`
- Auth: HTTP bearer

Add a trunk record with SIP information

## Path parameters

- `voip_id` integer, required

## Request body

- Trunk
  - `name` string, required: Name of Trunk
  - `uri` unknown, required
  - `max_concurrent_calls` integer, nullable: Max concurrent calls. Default is 10
  - `max_minutes_per_month` integer, nullable: Max minutes per month. Default is 750.
  - `max_call_duration` integer, nullable: Max call duration. Default is 10800
  - `codecs` string[], nullable: Custom audio codec configuration

## Response `201`

Created

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation failed
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com.md) · [All operations](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/llms.txt) · [OpenAPI document](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/revisions/c8e33dffe904?raw)
