Skip to main content
The 1eye API uses standard HTTP status codes and a consistent JSON error format.

Error response format

All API errors return an error object.
The error object can include:

HTTP status codes

Invalid request

Malformed requests return:
with:

Invalid parameter

Unknown query parameters, invalid values, unsupported sort fields, and other parameter validation errors return:
Example:
The 1eye API does not silently ignore unknown query parameters.

Invalid cursor

Malformed, modified, or mismatched pagination cursors return:
with:
Cursors must be used with the same endpoint, filters, and sorting that were used to generate them.

Authentication errors

A missing, invalid, or revoked API key returns:
Example:

Resource not found

If a requested resource does not exist or belongs to another workspace, the API returns:
with:
The API does not reveal whether a resource exists in another workspace.

Rate limit errors

When a workspace exceeds an API rate limit, the API returns:
with:
Example:
Rate-limited responses may include:
When present, Retry-After indicates how long to wait before retrying the request.

Server errors

Unexpected server errors return:
with:
If the API is temporarily unavailable, it returns:
with:

Request IDs

Every API request receives a unique request ID. It is returned in the response header:
Error responses also include the same value as error.request_id. Use the request ID when reviewing API Logs or contacting 1eye support about a failed request.