> ## 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

**authorization** `string` *required*

Your API key for authentication.

### Body

**phone\_number** `string` *required*

The phone number to update. Must be in E.164 format.

**updates** `object` *required*

The updated direction object. Must include `type` (`"inbound"` or `"outbound"`).

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

**register\_password\_for\_pbx** `string`

Returned when switching to or updating registration-based auth. Configure this password in your PBX.

```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](https://docs.bland.ai/llms.txt)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.