Authentication Method
Vobiz uses custom HTTP headers for authentication. Every API request must include bothX-Auth-ID and X-Auth-Token headers. A Bearer JWT (Authorization: Bearer <token>) issued at login is also accepted in place of the header pair.
Getting Your API Credentials
Follow these steps to obtain your API credentials from the Vobiz Console:- Log in to the Vobiz Console - Navigate to console.vobiz.ai and sign in.
- Navigate to API Settings - Go to Settings → API in the left sidebar.
- View Your Credentials - Your Auth ID and Auth Token are shown here.
- Copy Your Credentials - Copy both the Auth ID and Auth Token to use in your application.
Understanding Your Credentials
X-Auth-ID(Account Identifier) - Your account’s authentication ID. Starts with theMA_prefix and identifies your account. Example:MA_XXXXXXXX.X-Auth-Token(Secret Key) - Your secret authentication token. Keep this secure! Send it in theX-Auth-Tokenheader alongside your Auth ID.
Making Authenticated Requests
Include both authentication headers in every API request:Required Headers
| Header | Value | Required |
|---|---|---|
X-Auth-ID | Your Auth ID (MA_…) | Required |
X-Auth-Token | Your Auth Token | Required |
Content-Type | application/json | For POST/PUT |
You may instead authenticate with a JWT obtained at login by sending an
Authorization: Bearer <token> header. The X-Auth-ID / X-Auth-Token pair is the recommended method for server-to-server integrations.Common Authentication Errors
401 Unauthorized- Missing or invalid Auth ID / Auth Token (or invalid Bearer token).403 Forbidden- Valid credentials but insufficient permissions for the requested resource.- Missing headers - Both
X-Auth-IDandX-Auth-Tokenmust be present (unless using a Bearer token).
Code Example
An authenticated request using cURL:cURL
cURL
Security Best Practices
- Use environment variables - Store your Auth ID and Token in environment variables (e.g.
VOBIZ_AUTH_ID,VOBIZ_AUTH_TOKEN). Do not hardcode them in your source code. - Never commit credentials - Add credential files to
.gitignoreto prevent accidentally committing them to version control. - Use server-side only - Never expose your Auth Token in client-side code (browsers, mobile apps). All API calls should be made from your backend servers.
- Use HTTPS - Always make API requests over HTTPS. The Vobiz API does not support unencrypted HTTP connections.