Skip to Content
mlab docs

Pagination and filters

Which mlab.sh API list endpoints paginate, with limit and offset, the filters each endpoint family accepts, and the lists that come back whole.

Most list endpoints of the mlab.sh API return the whole list in one response: the lists are small and bounded per organization. Two endpoints are paged, the security monitoring findings and assets, with limit and offset. There are no cursors and no Link headers.

EndpointPagedFiltersSize bound
GET /api/v1/scan/monitoring/findingslimit (1 to 200, default 50), offsetasset, severity, kev, kev_unverified, epss, sort=epss, qYour open findings
GET /api/v1/scan/monitoring/assetslimit (1 to 500, default 100), offsettype, verified, criticality, owner, tag, qYour inventory
GET /api/v1/scan/monitoring/exceptionsNostate=in_forceUp to 5,000 decisions
GET /api/v1/casesNoNoneEvery case of the organization
GET /api/v1/scan/watchdog/listNoNone50 schedules per organization
GET /api/v1/scan/finding-tagsNoscan_uuid (required)The tags of one RedKit scan
GET /api/v1/flowsNoNone50 flows per organization
POST /api/v1/flows/historylimit only (default 50, at most 200)uuid (required), status, kind, targetNewest runs first
GET /api/v1/orga/webhooksNoNone10 endpoints per organization

Paged endpoints: limit and offset

Both monitoring readers take the same two parameters:

ParameterMeaning
limitRows per page. Clamped to the endpoint's range: a value out of range is brought back into it, not refused. A value that is not a number falls back to the default.
offsetRows to skip, from 0. At most 1,000,000.

The response says where the next page starts in next_offset, which is null on the last page. Loop until it is null:

# First page of critical findings, 100 at a time
curl -H "Authorization: Bearer YOUR_API_KEY" \
    "https://mlab.sh/api/v1/scan/monitoring/findings?severity=critical&limit=100&offset=0"

# Next page: pass the next_offset the previous response returned
curl -H "Authorization: Bearer YOUR_API_KEY" \
    "https://mlab.sh/api/v1/scan/monitoring/findings?severity=critical&limit=100&offset=100"

Offsets are positions in a list that can change between two calls: monitoring runs every hour, and a finding fixed or set aside in between shifts the rows after it. For a consistent snapshot, page quickly, or use the CSV export of the Vulnerabilities page.

The monitoring readers need the monitoring.read permission on the key, and security monitoring is part of the Team and Enterprise plans. On another plan they answer 400 with "Security monitoring is part of the Team and Enterprise plans.". They answer GET only.

Monitoring findings

GET /api/v1/scan/monitoring/findings lists the open vulnerabilities of your monitored domains and networks, one row per vulnerability and product, across the hosts it was seen on. See Security monitoring for how findings are produced.

FilterValues
assetA verified domain or network: everything under it. Any other host: that host and what is under it.
severitycritical, high, medium or low. Anything else answers 400 "severity is critical, high, medium or low."
kev1 or true: only vulnerabilities exploited in the wild (CISA or ENISA KEV) for the version matched.
kev_unverified1 or true: only products with KEV entries whose version could not be matched.
epss1 or true: the EPSS filter of the Vulnerabilities page.
sortepss sorts by EPSS score. Any other value keeps the default order.
qFree text, first 100 characters.
# Exploited-in-the-wild findings on one verified domain, most likely to be exploited first
curl -H "Authorization: Bearer YOUR_API_KEY" \
    "https://mlab.sh/api/v1/scan/monitoring/findings?asset=example.com&kev=true&sort=epss&limit=50"

The response:

{
  "status": "success",
  "organization_open": { "total": 42, "critical": 3, "high": 11, "medium": 20, "low": 8, "kev": 2, "kev_unverified": 1 },
  "matching_findings": 4,
  "set_aside": 1,
  "rows": [
    {
      "ref": "CVE-2024-6387",
      "product": "OpenSSH",
      "kind": "vulnerability",
      "title": "...",
      "severity": "high",
      "kev": false,
      "kev_unverified": false,
      "kev_due_date": null,
      "epss": 0.4,
      "epss_percentile": 0.97,
      "cvss": 8.1,
      "version": "8.2p1",
      "fixed_versions": ["9.8p1"],
      "hosts": 2,
      "assets": ["example.com"],
      "sample_hosts": ["mail.example.com", "vpn.example.com"],
      "first_seen": "2026-10-26T09:00:00+00:00"
    }
  ],
  "rows_total": 4,
  "limit": 50,
  "offset": 0,
  "next_offset": null
}

organization_open counts the whole organization, whatever the filters; matching_findings and rows_total count what the filters keep.

Monitoring assets

GET /api/v1/scan/monitoring/assets lists the infrastructure inventory with what each asset means to the organization.

FilterValues
typedomain, ip_network or s3_bucket
verified1 / true or 0 / false
criticalityA criticality level, or none for assets without one
ownerA member's email, or none for assets nobody owns
tagOne tag
qText contained in the asset value
# Verified domains nobody owns yet
curl -H "Authorization: Bearer YOUR_API_KEY" \
    "https://mlab.sh/api/v1/scan/monitoring/assets?type=domain&verified=true&owner=none&limit=500"
{
  "status": "success",
  "assets": [
    {
      "id": "6f0d...",
      "value": "example.com",
      "type": "domain",
      "verified": true,
      "added": "2026-09-30T08:12:00Z",
      "criticality": null,
      "owner": null,
      "environment": null,
      "tags": []
    }
  ],
  "total": 1,
  "limit": 500,
  "offset": 0,
  "next_offset": null
}

Monitoring exceptions

GET /api/v1/scan/monitoring/exceptions returns the exceptions register in one response, the decisions in force first. state=in_force keeps only those. Each entry has id, ref, product, root, host, finding_id, decision, reason, decided_by, decided_at, expires_at, findings, kev, state (in_force, expired or withdrawn) and closed_at.

curl -H "Authorization: Bearer YOUR_API_KEY" \
    "https://mlab.sh/api/v1/scan/monitoring/exceptions?state=in_force"

Cases

GET /api/v1/cases returns every case of the organization in cases, open cases first, then by last update, newest first. There is no filter or paging: filter on status or kind client-side. Each entry carries uuid, title, summary, status, kind, indicators and comments (counts), created_at and updated_at. Open one with POST /api/v1/cases/detail and {"uuid": "..."}.

curl -H "Authorization: Bearer YOUR_API_KEY" "https://mlab.sh/api/v1/cases"

Cases need cases.read and are part of the Team and Enterprise plans.

Scheduled scans, tags, flows, webhooks

  • Scheduled scans: GET /api/v1/scan/watchdog/list returns all of them in schedules (uuid, scan_type, domain, plugins, frequency, day_of_week, day_of_month, hour, minute, enabled, next_run_at, last_run_at, created_at). An organization holds at most 50.
  • Finding tags: GET /api/v1/scan/finding-tags?scan_uuid=SCAN_UUID returns the tags of one RedKit scan. scan_uuid is required and must be a UUID of a scan your organization owns.
  • RedKit flows: GET /api/v1/flows returns every flow (at most 50 per organization). POST /api/v1/flows/history returns the runs of one flow, newest first, with optional filters in the body: status (queued, running, succeeded, failed, cancelled, skipped), kind (manual, schedule, test, rerun), target (first 100 characters) and limit (default 50, at most 200). An unknown status or kind is ignored rather than refused. There is no offset: older runs than the last 200 are not reachable this way.
curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
    -d '{"uuid":"FLOW_UUID","status":"failed","limit":20}' \
    "https://mlab.sh/api/v1/flows/history"
  • Webhook endpoints: GET /api/v1/orga/webhooks, with a key holding webhooks.manage, lists only the endpoints that key created. See Webhooks.

Lookups: one indicator, or a batch

Lookups are not lists. Each one takes a single indicator in the query string. To send several in one call:

NeedCall
Several hashesPOST /api/v1/scan/hash with {"hashes": [...]}
Several crypto addressesPOST /api/v1/scan/crypto with {"addresses": [...], "chain": "..."}
A mixed list, from cachePOST /api/v1/scan/batch with {"indicators": "..."}: up to 1 MB of text, up to 200 distinct indicators

The API Reference has the request and response of each.

On this page