Skip to main content
GET
/
v1
/
sip
/
generate-password
Generate SIP Password
curl --request GET \
  --url https://api.bland.ai/v1/sip/generate-password \
  --header 'authorization: <authorization>'
{
  "data": {
    "password": "Kf7mQ2pXvR9nLs4T",
    "length": 16
  },
  "errors": null
}
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 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).
Example Request
curl -X GET 'https://api.bland.ai/v1/sip/generate-password?strength=long' \
  -H "Authorization: Bearer <token>"
{
  "data": {
    "password": "Kf7mQ2pXvR9nLs4T",
    "length": 16
  },
  "errors": null
}

Docs for agents: llms.txt