Skip to main content
POST
Create a credential
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

Only username and password are accepted at creation. The credential is created enabled: true by default. To disable it later, or to add a description, use Update Credential. The response also returns a realm ({account_id}.sip.vobiz.ai) - the SIP authentication realm your softphone or PBX must present alongside the username and password.
Username characters. Keep usernames alphanumeric. Dashes, underscores, and other punctuation can be rejected with a 400. The username is immutable - to change it, create a new credential and delete the old one.

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

Examples

cURL - Basic Credential

cURL Request

cURL - Credential with Strong Password

cURL Request
Error Response (409 Conflict): If the username already exists on the account:
Error Response
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