All Verso API requests require authentication using a Bearer token. This guide explains how to obtain and use your API credentials.
API Key Authentication
Verso uses API key-based authentication. Your API key acts as a Bearer token that must be included in every request.
Header Format
Include your API key in the Authorization header:
Authorization Header
Example Request
Authenticated Request
Obtaining API Keys
Sandbox Environment
To access the sandbox environment:
- Contact your account manager at Verso
- Receive your sandbox credentials including:
- API Key
- Division ID
- Payroll ID
- Use the sandbox base URL:
https://api.sandbox.verso.io
Production Environment
For production access:
- Complete your integration testing in sandbox
- Request production credentials from your account manager
- Use the production base URL:
https://api.verso.io
Never share your API keys or commit them to version control. Use environment variables to store credentials securely.
Security Best Practices
Store Keys Securely
Environment Variable
Using Environment Variable
Key Rotation
- Rotate API keys periodically
- Immediately revoke compromised keys by contacting support
- Use separate keys for development and production
Network Security
- Always use HTTPS (TLS 1.2+)
- Implement IP allowlisting when possible
- Monitor API usage for anomalies
Tenant Isolation
Verso operates in a multi-tenant architecture. Your API key is bound to a specific tenant, ensuring:
- Data Isolation: You can only access your organization's data
- Division Scoping: Operations are scoped to your assigned divisions
- Automatic Injection: Tenant context is automatically applied to all requests
You don't need to specify tenant information in your requests. The API automatically associates your requests with the correct tenant based on your API key.
Error Responses
401 Unauthorized
Code
Causes:
- Missing
Authorizationheader - Invalid API key
- Expired API key
403 Forbidden
Code
Causes:
- Attempting to access another tenant's data
- Insufficient permissions for the operation
- Resource not within your division scope
Next Steps
- Quickstart - Run your first payroll
- Error Handling - Understanding API errors
- API Reference - Explore all endpoints
Last modified on