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

# Generate SIP Password

> Generate a strong, PBX-safe SIP password for register-based authentication, at a configurable length.

Generates a cryptographically-random password suitable for a trunk's `register_auth.password`. The character set is unambiguous (no `0`/`O`/`1`/`l`/`I`) and avoids characters that need escaping in PBX configs or SIP URIs, so it pastes safely into Asterisk / FreeSWITCH / 3CX. The result always satisfies the 8–256 length bounds the [attach](https://docs.bland.ai/api-v1/post/sip-attach.md) schema enforces.

### Headers

**authorization** `string` *required*

Your API key for authentication.

### Query Parameters

Provide **either** `length` or `strength` (or neither, for the default). If both are given, `length` takes precedence.

**length** `integer`

Explicit password length, between **8 and 256**. Values outside the range are clamped.

**strength** `string`

A length preset instead of an explicit value: `"standard"` (16 characters) or `"long"` (32 characters). Defaults to `"standard"` when neither `length` nor `strength` is provided.

### Response

**password** `string`

The generated password.

**length** `integer`

The actual length of the generated password (after clamping / preset resolution).

```json Example Request theme={null}
curl -X GET 'https://api.bland.ai/v1/sip/generate-password?strength=long' \
  -H "Authorization: Bearer <token>"
```

```json Response theme={null}
{
  "data": {
    "password": "Kf7mQ2pXvR9nLs4T",
    "length": 16
  },
  "errors": null
}
```

***

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.