When interacting with Apollo API endpoints, it helps to understand the status codes that might be returned.
To find a status code for an endpoint:
- Go to the reference documentation for an endpoint such as people API search.
- By default, the Response section of the reference docs shows an example response with a
200status. To view other status codes, click the EXAMPLE drop-down, then select a status code. - The status you select appears in the response section.
You don't need to supply an API key to review the Apollo-generated example response or other status codes. Check out Test an API Key to perform your own testing and generate unique responses.
The error_details object
error_details objectApollo is moving every API error onto one machine-readable shape. Where an endpoint has been migrated, its error response carries an error_details object. For example:
{
"error_details": {
"code": "AUTH.AUTHENTICATION.CREDENTIALS_MISSING",
"message": "This request carried no credential Apollo could authenticate.",
"suggestions": [
{ "label": "Send your API key in the X-Api-Key header", "header": "X-Api-Key" },
{ "label": "Check how to authenticate against the Apollo API", "url": "https://docs.apollo.io/reference/authentication" }
],
"context": {}
}
}A refusal that has context to give returns it wrapped, one object per key:
"context": {
"window": { "value": "hour", "description": "The rate limit window that was exhausted, such as \"minute\" or \"hour\"" }
}| Field | What it's for |
|---|---|
code | A stable identifier in the form DOMAIN.CATEGORY.REASON. Branch your code on this, not on the message. |
message | A human-readable explanation. The wording can change, so don't match on it. |
suggestions | Ordered, actionable next steps. Each carries a label, and where relevant a url, parameter, parameters (array), header, example, or retry_after_seconds. For when to retry after a rate-limit refusal, see Rate Limit Errors. |
context | Values from your request that explain the refusal. Each entry is an object, not a bare value: {"value": "hour", "description": "The rate limit window that was exhausted, such as \"minute\" or \"hour\""}. An empty object ({}) when the error needs no context. |
For every code an endpoint in this reference can return, see Error Codes.
Readerror_details, not the legacy fieldsUntil 16 February 2027, most migrated errors also return deprecated root-level fields (
error,error_code,message) next toerror_details, plus adeprecationobject that names them. The examples in this reference leave those fields out. On 16 February 2027 they are removed, anderror_detailsbecomes the only error payload. Readerror_details.codeand don't parse the root-level fields.
Common status codes
Most Apollo API endpoints share the following status codes. Some endpoints return additional, endpoint-specific codes and error messages — always check the Response examples on that endpoint's reference page for exact details.
| Status code | Meaning | Common cause | error_details.code |
|---|---|---|---|
401 | Unauthorized | Your API key or access token is missing or invalid, or your account is no longer active. See Authentication. | AUTH.AUTHENTICATION.* |
403 | Forbidden | Your plan doesn't include API access, your API key isn't scoped to the endpoint, your access token lacks the endpoint's scope, or the endpoint isn't available through the public API. Contact Apollo if you believe this is an error. | AUTH.AUTHORIZATION.* |
404 | Not found | The requested record doesn't exist or isn't accessible with your credentials. Double-check the ID in your request. | varies by endpoint |
422 | Unprocessable entity | Your request was received but couldn't be processed — usually a validation error or an invalid or missing parameter. The response body describes the specific issue; the exact shape varies by endpoint. | varies by endpoint |
429 | Too many requests | You've exceeded your rate limit, or Apollo is under unusually high load. See Rate Limits. | USAGE.RATE_LIMIT.* |
500 | Internal server error | An unexpected error occurred on Apollo's side. Retry the request; if it persists, contact Apollo. | varies by endpoint |
Status ReportNot all API status codes are currently documented by Apollo. This documentation contains the most common codes.