The API is small: one endpoint for leaked credentials and three for scans, all JSON over HTTPS at https://scanbe4.com. Scan results are counted with the same rules as the app, so they match the report page and the PDF behind the scan's share links.
| Endpoint | What it does | Key permission |
|---|---|---|
GET /api/v1/leaks | Leaked-credential records of one domain, newest first. | Any key; clear passwords need the reveal permission |
POST /api/v1/scans | Launch a full or quick scan. | Launch scans |
GET /api/v1/scans/{id} | Progress, then the result of a scan this key launched. | Any key |
GET /api/v1/scans | The last 50 scans this key launched. | Any key |
API keys
Keys are issued by the Scanbe4 team on request; there is no self-service key page in the app. Ask Contact sales or Contact support, and say what the key is for.
- Each key has a name and two permissions that stay off unless the team grants them: reveal passwords in leak records, and launch scans.
- A key is shown once, when it is created. Scanbe4 stores only a hash of it, so a lost key cannot be recovered: ask for a new one.
- A key can be given an expiry date, and the team can revoke it at any time.
- Every call updates the key's last use, and every leak query and scan launch is written to the audit log with the key name, the domain and the caller's IP address.
Authentication
Send the key as a bearer token in the Authorization header, or in an X-API-Key header. Keys start with sb4_lk_. Keep them in a secret store, never in code or a browser.
# either
Authorization: Bearer sb4_lk_…
# or
X-API-Key: sb4_lk_…Read leaked credentials
GET /api/v1/leaks returns the leaked-credential records of one domain from the breach index (breach dumps and infostealer logs), newest first. It is the data of the Leaked credentials page, without source file names or paths.
Parameters
| Parameter | Required | Meaning |
|---|---|---|
domain | Yes | The domain, such as example.com. A leading www. is removed. |
limit | No | Records per page, from 1 to 500. Default 100. |
offset | No | Records to skip, default 0. offset + limit cannot go past 10,000, so paging reaches the newest 10,000 records. |
since | No | An ISO date such as 2026-01-01: only records from that date on, for example what is new since your last call. |
reveal | No | true returns passwords in clear, only for a key allowed to reveal them (otherwise 403). |
Example
Illustrative example (sample values):
curl -s "https://scanbe4.com/api/v1/leaks?domain=example.com&limit=100" \
-H "Authorization: Bearer $SCANBE4_API_KEY"{
"domain": "example.com",
"total": 1,
"offset": 0,
"limit": 100,
"count": 1,
"next_offset": null,
"passwords": "masked",
"records": [
{
"id": "…",
"email": "j.doe@example.com",
"username": null,
"password": "****",
"timestamp": "2026-09-14T08:12:00Z",
"website": "portal.example.com",
"url": "https://portal.example.com/login",
"ip": null,
"country": "FR"
}
]
}emailis the login when it is an email address, or an address listed in the record;usernameis the login when it is not.passwordis****when masked, the clear value when revealed, andnullwhen the record holds none.ipandcountrycome from the infected machine's record when the credential itself has none.next_offsetis the offset of the next page, ornullon the last one.
When the breach index cannot be reached, the API answers with an error (502) rather than an empty list, so a failure never reads as "no leaks".
Launch a scan
POST /api/v1/scans needs a key allowed to launch scans. The scan runs the same pipeline as New scan in the app: see Scans.
| Field | Required | Meaning |
|---|---|---|
domain | Yes | A domain, a single IPv4 address or an internal host name the scanner can reach (see Domains and targets). |
authorized | Yes | Must be true: your statement that the owner of the target asked for or allowed the scan. |
mode | No | full (default) or quick. |
notify_email | No | An address that receives a summary with the report links when the scan ends. |
Illustrative example:
curl -s -X POST "https://scanbe4.com/api/v1/scans" \
-H "Authorization: Bearer $SCANBE4_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "example.com",
"authorized": true,
"mode": "quick",
"notify_email": "secops@example.com"
}'The answer is 202 Accepted with the scan_id, its status, a status_url to poll, the report_url and pdf_url share links, the notify_email and estimated_minutes, a rough duration estimate.
Follow a scan
GET /api/v1/scans/{id} returns a scan this key launched; any other id answers 404. It gives the status (queued, running, completed or failed), the progress while it runs (phase, total phases and phase name), the start and end times, the error of a failed scan, the email_status of the summary email, the share links and their expiry, and, once completed, the result:
findings: counts per severity and the total, counted once per check and host as in the app;surface: subdomains, live hosts, IP addresses, open ports and web apps;web_apps_without_firewall, ornullwhen firewalls were not checked;certificates: total, valid, expired, expiring soon and self-signed;configuration_checks: passing and total;top_findings: up to 50 findings, worst first, with severity, title, host and type.
Illustrative example (shortened, made-up numbers):
{
"scan_id": "…",
"domain": "example.com",
"mode": "quick",
"status": "completed",
"progress": null,
"error": null,
"email_status": "sent",
"report_url": "https://scanbe4.com/r/<token>",
"pdf_url": "https://scanbe4.com/r/<token>/pdf",
"result": {
"findings": {
"Critical": 0, "High": 1, "Medium": 3, "Low": 2, "Info": 5, "total": 11
},
"surface": {
"subdomains": 14, "live_hosts": 6, "ips": 4,
"open_ports": 9, "web_apps": 6
},
"configuration_checks": { "passing": 12, "total": 17 },
"top_findings": [
{
"severity": "High",
"title": "…",
"host": "app.example.com",
"type": "vulnerability"
}
]
}
}GET /api/v1/scans lists the last 50 scans the key launched, newest first, with their status, dates, email status and share links.
Report links and email
report_urlopens a read-only report page andpdf_urlthe PDF, without signing in, for 30 days after the launch. After that, the page says the link has expired.- While the scan runs, the report page refreshes itself until the result is ready.
- The shared PDF shows breach data as counts only, without account or device details, and the report page is kept out of search engines.
- Anyone with a link can open the report until it expires, so forward it like a password.
- When the scan ends, completed or failed,
notify_emailreceives a summary with both links, andemail_statusshows whether it went out.
What the report and the PDF contain is described in Reports.
Limits and errors
Each key can make 120 requests per minute, have 3 scans queued or running at once, and launch 25 scans per day, counted over a rolling window. Errors come back as {"error": "…"} with a plain-language message:
| Status | Meaning |
|---|---|
400 | A parameter is missing or invalid: no domain, a bad since date, a page past the window, authorized not set to true, an unknown mode or email address, or a target the platform refuses. |
401 | The key is missing or malformed, or it is unknown, revoked or expired. Unknown, revoked and expired keys get the same answer, so a reply never shows which keys exist. |
403 | The key is not allowed to reveal passwords or to launch scans. |
404 | The scan does not exist, or another key launched it. |
409 | The target is marked as not scannable on the platform. |
429 | The rate limit or a scan quota is reached; the message says which. |
502 | The breach index is unavailable; try again later. |
Common questions
How do we get an API key?
Ask the Scanbe4 team through Contact sales or Contact support, saying what the key is for and whether it needs to reveal passwords or launch scans. Keys are issued by our team; there is no self-service key page in the app.
Does the leaks endpoint return passwords?
Masked as **** by default. Clear passwords come back only with reveal=true, and only for a key the team has allowed to reveal them; any other key gets a 403 error.
Can Scanbe4 call us back when a scan finishes?
There is no per-request callback. Poll the scan’s status URL, give a notify_email when you launch the scan to receive a summary by email, or add a signed webhook under Connectors › Alert delivery: it receives every alert, including Scan completed.