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.
| Endpoint | Paged | Filters | Size bound |
|---|---|---|---|
GET /api/v1/scan/monitoring/findings | limit (1 to 200, default 50), offset | asset, severity, kev, kev_unverified, epss, sort=epss, q | Your open findings |
GET /api/v1/scan/monitoring/assets | limit (1 to 500, default 100), offset | type, verified, criticality, owner, tag, q | Your inventory |
GET /api/v1/scan/monitoring/exceptions | No | state=in_force | Up to 5,000 decisions |
GET /api/v1/cases | No | None | Every case of the organization |
GET /api/v1/scan/watchdog/list | No | None | 50 schedules per organization |
GET /api/v1/scan/finding-tags | No | scan_uuid (required) | The tags of one RedKit scan |
GET /api/v1/flows | No | None | 50 flows per organization |
POST /api/v1/flows/history | limit only (default 50, at most 200) | uuid (required), status, kind, target | Newest runs first |
GET /api/v1/orga/webhooks | No | None | 10 endpoints per organization |
Paged endpoints: limit and offset
Both monitoring readers take the same two parameters:
| Parameter | Meaning |
|---|---|
limit | Rows 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. |
offset | Rows 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.
| Filter | Values |
|---|---|
asset | A verified domain or network: everything under it. Any other host: that host and what is under it. |
severity | critical, high, medium or low. Anything else answers 400 "severity is critical, high, medium or low." |
kev | 1 or true: only vulnerabilities exploited in the wild (CISA or ENISA KEV) for the version matched. |
kev_unverified | 1 or true: only products with KEV entries whose version could not be matched. |
epss | 1 or true: the EPSS filter of the Vulnerabilities page. |
sort | epss sorts by EPSS score. Any other value keeps the default order. |
q | Free 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.
| Filter | Values |
|---|---|
type | domain, ip_network or s3_bucket |
verified | 1 / true or 0 / false |
criticality | A criticality level, or none for assets without one |
owner | A member's email, or none for assets nobody owns |
tag | One tag |
q | Text 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/listreturns all of them inschedules(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_UUIDreturns the tags of one RedKit scan.scan_uuidis required and must be a UUID of a scan your organization owns. - RedKit flows:
GET /api/v1/flowsreturns every flow (at most 50 per organization).POST /api/v1/flows/historyreturns 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) andlimit(default 50, at most 200). An unknownstatusorkindis 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 holdingwebhooks.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:
| Need | Call |
|---|---|
| Several hashes | POST /api/v1/scan/hash with {"hashes": [...]} |
| Several crypto addresses | POST /api/v1/scan/crypto with {"addresses": [...], "chain": "..."} |
| A mixed list, from cache | POST /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.
Errors
The error format of the mlab.sh REST API, every status code it returns with its cause and fix, and which errors to retry.
Webhooks
Receive mlab.sh events on your own endpoint: the event catalog with example payloads, the signed envelope and its headers, HMAC-SHA256 verification in Python and Node, retries and testing.