> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bland.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update SIP Direction

> Update an existing SIP routing direction for a phone number.

### Headers

<ParamField header="authorization" type="string" required>
  Your API key for authentication.
</ParamField>

### Body

<ParamField body="phone_number" type="string" required>
  The phone number to update. Must be in E.164 format.
</ParamField>

<ParamField body="updates" type="object" required>
  The updated direction object. Must include `type` (`"inbound"` or `"outbound"`).
</ParamField>

For outbound updates, you can modify `sip_endpoint`, `options` (port, transport, secure\_media, sip\_username, sip\_password), and `headers`.

For inbound updates, you can modify `auth_mode`, `register_auth`, `sip_endpoint`, `options`, and `headers`.

### Response

<ResponseField name="register_password_for_pbx" type="string">
  Returned when switching to or updating registration-based auth. Configure this password in your PBX.
</ResponseField>

```json Example Request theme={null}
curl -X POST https://api.bland.ai/v1/sip/update \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "phone_number": "+14150000000",
    "updates": {
      "type": "outbound",
      "sip_endpoint": "sip:new.provider.com",
      "options": {
        "port": 5061,
        "transport": "tls",
        "secure_media": true
      }
    }
  }'
```

***

Docs for agents: [llms.txt](/llms.txt)
