---
title: "/sip-trunk/{id}"
method: PUT
path: "/sip-trunk/{id}"
tags: ["dialin"]
---

# /sip-trunk/{id}

`PUT /sip-trunk/{id}`

## Request

- Base URL: `https://api.daily.co/v1`
- URL: `https://api.daily.co/v1/sip-trunk/{id}`
- Auth: HTTP bearer

Update a SIP trunk (partial overlay). `trunk_name` is immutable. In `notification`, `hmac: null` ROTATES the secret (Daily regenerates a fresh one); a value sets it; omit to keep the current one. Any update touching `notification` re-sends the signed `sip_trunk.test` probe (with the final hmac) - the endpoint must return 2xx. `trunk_config.credential: null` clears the credential. Admission must remain valid (gated XOR is_open).

## Path parameters

- `id` string, required

## Request body

- object
  - `description` string
  - `room_template` object
  - `notification` object
    - `webhook_url` string, uri
    - `hmac` string, nullable: A base64 value sets it; null rotates it (fresh secret); omit to keep the current one.
  - `trunk_config` object
    - `allowed_ips` string[]
    - `credential` object, nullable
      - `username` string
      - `password` string
    - `is_open` boolean
    - `exp_offset` integer
  - `enabled` boolean

## Response `200`

The updated SIP trunk.

- object
  - `id` string
  - `description` string
  - `trunk_name` string
  - `sip_uri` string
  - `enabled` boolean
  - `config` object

## Other responses

- `400`: 400

## Changes

- **2026-09-17** `4a28ab33068e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/daily/apis/daily-api/changes/sip-trunk/:id/put.md)

---

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