Authorization header of each HTTP request. There are no session tokens, OAuth flows, or cookies required for server-to-server integrations.
Generating an API Key
To create a new API key:- Log in to the VInfer dashboard at app.vinfer.ai.
- Navigate to Settings → API Keys.
- Click Create New Key.
- Enter a descriptive name (e.g.,
production-backend,analytics-pipeline). - Select the appropriate scope (see Key Scopes below).
- Click Create — the key is shown once. Copy it immediately and store it somewhere safe.
API keys are workspace-scoped. Each workspace (for example, your production environment and staging environment) has its own separate set of keys. Make sure you are in the correct workspace before generating a key.
Making Authenticated Requests
Include your API key as a Bearer token in theAuthorization header on every request. Replace YOUR_API_KEY with the key you generated.
Key Scopes
When creating a key, you assign it one of three scopes. Always use the least-privileged scope that your integration actually requires.| Scope | Permissions |
|---|---|
| Read-Only | GET requests only — list and retrieve resources. Suitable for dashboards, monitoring, and analytics pipelines. |
| Read-Write | All GET, POST, PATCH, and DELETE requests. Suitable for backend services that create campaigns, initiate calls, or submit transcription jobs. |
| Admin | All read-write permissions plus the ability to create, list, and revoke API keys. Suitable for internal tooling that manages API access programmatically. |
Rotating Keys
Rotate keys periodically and immediately after any suspected exposure. The recommended process to rotate without downtime:- Generate a new key with the same scope as the key you are replacing.
- Update your application configuration or secret manager to use the new key.
- Deploy and verify that requests are succeeding with the new key.
- Return to Settings → API Keys in the dashboard and click Revoke next to the old key.
401 Unauthorized response.
Security Best Practices
Full list of API key security best practices
Full list of API key security best practices
- Use environment variables. Never hardcode keys in source code, configuration files checked into version control, or build artifacts.
- Use read-only keys for read-only integrations. If a service only needs to query analytics or list campaigns, give it a read-only key. A compromised read-only key cannot launch calls or modify data.
- Never include keys in URLs. Query string parameters appear in server logs, browser history, and referrer headers. Always pass keys in the
Authorizationheader. - Audit key usage. The VInfer dashboard shows the last-used timestamp for each key. If you see activity on a key that shouldn’t be active, revoke it immediately.
- Rotate keys on a schedule. Even without a known exposure, rotating production keys every 90 days reduces the window of risk from undetected leaks.
- Use separate keys per environment. Never share a production API key with a staging or development environment — use workspace isolation and environment-specific keys.
Authentication Errors
If your request is rejected due to an authentication issue, the API returns one of the following errors: 401 Unauthorized — returned when theAuthorization header is missing, the token is malformed, or the key has been revoked.