All API requests must include an API key in the X-API-KEY header.
- Your administrator generates an API key from the DualEntry dashboard
- Include the API key in the
X-API-KEYheader with every request - The API validates the key and authorizes access to your organization's data
curl https://api.dualentry.com/v1/invoices \
-H "X-API-KEY: your_api_key_here" \
-H "Content-Type: application/json"Contact your DualEntry administrator to generate an API key:
- Navigate to Settings → API Keys in the DualEntry dashboard
- Click Generate New API Key
- Copy the key immediately (it's shown only once)
- Store it securely in your application
Security: Never expose API keys in client-side code, public repositories, or logs. Use environment variables or secure secret management services.
| Status Code | Meaning | Solution |
|---|---|---|
| 401 | Missing API key | Include X-API-KEY header |
| 403 | Invalid or revoked API key | Verify your API key is correct and active |
Error Response:
{
"success": false,
"errors": {
"__all__": ["API key authentication failed"]
}
}- Store API keys in environment variables or secret management services
- Use separate API keys for development and production environments
- Rotate keys regularly for enhanced security
- Never commit API keys to version control