---
title: "Update Voice Routing"
method: PATCH
path: "/v1/numbers/{number_id}/voice-routing"
tags: ["numbers"]
---

# Update Voice Routing

`PATCH /v1/numbers/{number_id}/voice-routing`

Update voice routing for a phone number.

method: "sip_trunk" (requires sipTrunkId), "agent" (restores Retell), or "ignore".

## Path parameters

- `number_id` string, required

## Response `200`

Successful Response

- VoiceRoutingResponse
  - `success` boolean, required
  - `voiceRouting` VoiceRoutingInfo, required
    - `method` string, required
    - `sipTrunkId` string, nullable
    - `sipTrunkName` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agentphone/apis/agentphone-api.md) · [All operations](https://skmtc.net/agentphone/apis/agentphone-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentphone/agentphone-api/revisions/2b59d8754bfb/schema)
