The Adhere API uses standard HTTP status codes. Codes in theDocumentation Index
Fetch the complete documentation index at: https://docs.smartcomply.com/llms.txt
Use this file to discover all available pages before exploring further.
2xx range indicate success; 4xx codes indicate a client error; 5xx codes indicate a server-side issue.
HTTP Status Codes
| Code | Name | Description |
|---|---|---|
200 | OK | The request succeeded and data is returned in the response body. |
400 | Bad Request | The request was malformed — a required parameter is missing, the value is invalid, or the request body is not valid JSON. |
401 | Unauthenticated | The x-access-token header is missing or the key is invalid. |
403 | Forbidden | The API key is valid but does not have permission to access this endpoint. |
404 | Not Found | The requested resource does not exist. |
422 | Unprocessable Entity | The request was well-formed but the data failed validation (e.g., an ID number that doesn’t match the expected format). |
500 | Internal Server Error | An unexpected error occurred on Smartcomply’s end. |
502 | Bad Gateway | A dependent upstream service is temporarily unavailable. |
503 | Service Unavailable | The API is temporarily offline for maintenance. |
504 | Gateway Timeout | The upstream service did not respond in time. |
Error Response Format
All error responses follow this structure:Common Error Scenarios
401 — Missing or invalid API key
401 — Missing or invalid API key
Ensure the
x-access-token header is present and contains a valid, active secret key. Keys can be regenerated from the Adhere dashboard under Settings → API Keys.400 — Missing required parameter
400 — Missing required parameter
Check the request body against the endpoint’s parameter table. All required fields must be present and non-empty.
400 — Record not found
400 — Record not found
The provided ID (BVN, NIN, etc.) could not be matched in the source database. Verify the number is correct and belongs to a real record.
5xx — Server errors
5xx — Server errors
These are rare and typically transient. Implement exponential back-off retry logic in your integration. If a
5xx error persists for more than a few minutes, contact support.Retrying Requests
For5xx errors and network timeouts, retry with exponential back-off:
| Attempt | Wait before retry |
|---|---|
| 1st retry | 1 second |
| 2nd retry | 2 seconds |
| 3rd retry | 4 seconds |
4xx errors — they indicate a problem with the request itself that must be fixed before retrying.
