Error Codes
The TenantVerify API uses standard HTTP status codes and returns structured error responses.
HTTP Status Codes
| Status | Error | Description |
|---|---|---|
| 400 | Validation failed | Invalid request parameters |
| 401 | Invalid API key | API key is missing, invalid, or revoked |
| 403 | API access requires Pro or Business plan | Upgrade your plan to access the API |
| 403 | Verification limit reached | You've used all verifications for this period |
| 404 | Verification not found | The verification ID doesn't exist |
| 429 | Rate limit exceeded | Too many requests, wait before retrying |
| 500 | Internal server error | Something went wrong on our end |
Error Response Format
All error responses follow a consistent JSON structure with an error message and optional details array for validation errors.
{
"error": "Validation failed",
"details": [
{
"code": "invalid_type",
"path": ["tenant_email"],
"message": "Invalid tenant email"
}
]
}Handling Errors
- Always check the HTTP status code before parsing the response body
- For
429errors, wait and retry using exponential backoff - For
500errors, retry the request after a short delay - For
400errors, check thedetailsarray for specific field-level issues - For
401errors, verify your API key is correct and not revoked