Skip to main content
List endpoints in the Hacktron REST API share a consistent set of query parameters for pagination, sorting, and filtering.

Pagination

Most list endpoints use page‑based pagination: The response echoes the current page and limit, and includes total for building pagination controls or iterating until exhausted:
To iterate all pages:
Cost Estimations use offset‑based pagination instead, with limit (default 50, max 100) and offset (default 0). This is called out explicitly on the List Cost Estimations page.

Sorting

Endpoints that support sorting accept two parameters: The allowed sort_by values are documented on each list endpoint. Examples:
  • List scans: created_at, updated_at, status
  • List findings: found_at, updated_at, severity
If sort_by is omitted, the endpoint-specific default applies (see each list page).

Filtering

Filters are passed as additional query parameters. Each list endpoint documents the filters it supports. The patterns below are shared across list endpoints.

Enum filters

Enum filters accept the canonical lower‑snake‑case value and return only records that match:

Scoped filters

Some filters restrict results to a related resource:
Scoped filters validate that the target resource belongs to your organization. 404 is returned if the resource does not exist or is not visible to the key.

Combining filters

Multiple filters combine with AND semantics:
There is no OR operator. Call the endpoint multiple times and merge results client-side if a union is required.

Example

Fetch the 25 most recently updated high‑severity findings that are still open: