> ## 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](/api-v1/post/sip-attach) schema enforces.

### Headers

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

### Query Parameters

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

<ParamField query="length" type="integer">
  Explicit password length, between **8 and 256**. Values outside the range are clamped.
</ParamField>

<ParamField query="strength" type="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.
</ParamField>

### Response

<ResponseField name="password" type="string">
  The generated password.
</ResponseField>

<ResponseField name="length" type="integer">
  The actual length of the generated password (after clamping / preset resolution).
</ResponseField>

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

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

***

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