Skip to main content
POST
/
api
/
v1
/
account
/
{auth_id}
/
credentials
Create a credential
curl --request POST \
  --url https://api.vobiz.ai/api/v1/account/{auth_id}/credentials \
  --header 'Content-Type: application/json' \
  --header 'X-Auth-ID: <api-key>' \
  --header 'X-Auth-Token: <api-key>' \
  --data '
{
  "username": "myuser",
  "password": "securepassword123"
}
'
{
  "id": "aabbccdd-1234-5678-90ab-cdef12345678",
  "account_id": "MA_XXXXXXXX",
  "username": "acme_sip_user_01",
  "password": "<redacted>",
  "realm": "MA_XXXXXXXX.sip.vobiz.ai",
  "enabled": true,
  "created_at": "2026-03-25T10:00:00Z",
  "updated_at": "2026-03-25T10:00:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.vobiz.ai/llms.txt

Use this file to discover all available pages before exploring further.

POST https://api.vobiz.ai/api/v1/account/{auth_id}/credentials
Creates a new set of SIP credentials (username and password) for authenticating calls on a specific trunk. The username must be unique within the trunk, and the password must meet minimum security requirements.
Authentication required:
  • X-Auth-ID - Your account Auth ID
  • X-Auth-Token - Your account Auth Token
  • Content-Type: application/json
Important: Save the password securely after creation. The API never returns the password in future responses - it is write-only for security purposes.Note: The username cannot be changed after creation. To use a different username, create a new credential and delete the old one.

Request Parameters

FieldTypeRequiredDescription
usernamestringYesSIP username for authentication. Must be unique within the account. Cannot be changed after creation. Use descriptive names like office_phone_01 or user_john_mobile.
passwordstringYesSIP password for authentication. Minimum 8 characters. Recommended: 12+ characters with mixed case, numbers, and special characters.
enabledbooleanNoWhether the credential is active. Default: true. Set to false to create a disabled credential.
descriptionstringNoOptional description with context about the credential’s purpose, such as “Primary office phone” or “John’s mobile device”.

Response

Returns the complete credential object, including the auto-generated id UUID. The password is not included in the response for security reasons.
Response - 201 Created
{
  "id": "aabbccdd-1234-5678-90ab-cdef12345678",
  "account_id": "MA_XXXXXXXX",
  "username": "sipuser_demo",
  "password": "<redacted>",
  "realm": "MA_XXXXXXXX.sip.vobiz.ai",
  "enabled": true,
  "created_at": "2026-05-12T05:11:51.635106Z",
  "updated_at": "2026-05-12T05:11:51.635106Z"
}

Examples

cURL - Basic Credential

cURL Request
curl -X POST https://api.vobiz.ai/api/v1/account/{auth_id}/credentials \
  -H "X-Auth-ID: YOUR_AUTH_ID" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "trunk_user_001",
    "password": "SecurePassword123!",
    "enabled": true,
    "description": "Primary credential"
  }'

cURL - Credential with Strong Password

cURL Request
curl -X POST https://api.vobiz.ai/api/v1/account/{auth_id}/credentials \
  -H "X-Auth-ID: YOUR_AUTH_ID" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "office_phone_main",
    "password": "Vbz!2025$SecureP@ss",
    "enabled": true,
    "description": "Main office desk phone"
  }'
Error Response (409 Conflict): If the username already exists for this trunk:
Error Response
{
  "error": "Username already exists for this trunk",
  "code": 409
}
Next Steps:
  • Save the credential id for future operations
  • Store the password securely in your password manager
  • Configure your SIP client with the username and password
  • Test authentication by making a test call

Authorizations

X-Auth-ID
string
header
required

Your Vobiz account Auth ID

X-Auth-Token
string
header
required

Your Vobiz account Auth Token

Path Parameters

auth_id
string
required

Your account Auth ID

Example:

"MA_XXXXXX"

Body

application/json
username
string
required
password
string
required

Response

Success

id
string
required
account_id
string
required
username
string
required
password
string
required
realm
string
required
enabled
boolean
required
created_at
string
required
updated_at
string
required