api.ilepbase.com

Response Format

Standard response envelope, error codes, and pagination conventions.

Success Response

Successful responses use a standard JSON envelope:

{
  "success": true,
  "data": { ... },
  "timestamp": "2026-04-23T12:00:00.000Z"
}
FieldTypeDescription
successbooleanAlways true for successful responses.
dataobject | arrayThe response payload. Structure varies by endpoint.
timestampstringISO 8601 UTC timestamp of when the response was generated.

Error Responses

Errors return "success": false with an error object:

{
  "success": false,
  "error": {
    "code": "PROTEIN_NOT_FOUND",
    "message": "Protein record does not exist."
  },
  "timestamp": "2026-04-23T12:00:00.000Z"
}
FieldTypeDescription
error.codestringMachine-readable error code, such as INVALID_QUERY or FILE_NOT_FOUND.
error.messagestringError description.
error.detailsobject?Optional map of field-specific validation errors.

Pagination

List endpoints embed a pagination object in the response:

{
  "pagination": {
    "page": 1,
    "pageSize": 10,
    "total": 48200,
    "totalPages": 4820,
    "hasNext": true,
    "hasPrev": false
  }
}
FieldTypeDescription
pageintCurrent page number (1-indexed).
pageSizeintItems per page.
totalintTotal matching records.
totalPagesintTotal number of pages.
hasNextbooleanWhether there is a next page.
hasPrevbooleanWhether there is a previous page.

HTTP Status Codes

StatusMeaning
200Success.
400Bad request — missing or invalid parameters.
404Resource not found.
500Internal server error.
503Service unavailable.

On this page