Developers
REST API
Create API keys, authenticate, choose an API version, respect the rate limits, and find the main endpoints for organizations, findings, scans and tests.
Last updated on
Everything you can do in the console you can also do through the REST API: create organizations, read findings, run searches, start scans and penetration tests, and manage webhooks. Use it to feed InsecureWeb data into your own dashboards, ticketing system or customer portal.
The full reference, with every endpoint, parameter and response, is at app.insecureweb.com/swagger-ui. The OpenAPI definitions behind it are at https://app.insecureweb.com/v3/api-docs. This page explains what you need to know before you use it.
API keys
The account owner creates keys in the console under For developers.
- Choose Create, and give the key a name that says where it is used.
- Optionally, list the IP addresses or ranges allowed to use it. Requests from anywhere else are refused.
- Optionally, set an expiry date. You get an email before it expires.
- Copy the key. It is shown only once. Store it in a secrets manager, never in code.
You can edit, regenerate or delete a key at any time. The usage log shows every request made with your keys.

The For developers page is hidden from your clients when they use your white label address.
Authentication
Send the key in the api-key header of every request:
curl "https://app.insecureweb.com/api/organizations/filter?page=0&size=20" \
-H "api-key: $INSECUREWEB_API_KEY" \
-H "api-version: v3"
A key acts as the account owner, so it can read and change everything in the account. Keep it secret, and give each integration its own key so you can revoke one without breaking the others.
API keys cannot be used for Blue Team AI.
Versions
Choose the API version with the api-version header: v1, v3 or v4. Each endpoint in the reference says which version it belongs to. Requests without the header go to the older endpoints, which still work but are being replaced; prefer a versioned endpoint where one exists.
Older Threat Intelligence endpoints without a version header will be removed on or after January 6, 2027. Use /api/threat-intelligence with api-version: v3 instead.
Rate limits
| Account | Per second | Per minute | Per hour | Per day |
|---|---|---|---|---|
| Paid plan | 80 | 4,800 | 288,000 | 6,912,000 |
| Free trial | 1 | 10 | 50 | 100 |
Penetration test and Reputation Shield endpoints allow 20 requests a second per account. When you go over a limit, the API answers with HTTP status 429; wait and try again.
Main endpoint groups
| Area | Path | Version |
|---|---|---|
Organizations: list, create (including up to 100 at once with /bulk), edit, delete | /api/organizations | v3, v4 |
| Dark Web leaks, mitigation and exports | /api/dark-web/... | |
| Dark Web live search | /api/dark-web/live-scan | |
| Company Impersonation | /api/typosquatting... | v3 |
| Threat Intelligence, including the PDF report | /api/threat-intelligence | v3 |
| Vulnerability scans and results | /api/vulnerability/... | v1, v3 |
| Data Removal | /api/data-broker-removal/... | v1 |
| AI penetration tests | /api/threatexploit/... | v1 |
| Reputation Shield | /api/reputation-shield/... | |
| Webhooks | /api/webhook-management | |
| Notifications | /api/notification | |
| Billing | /api/billing | |
| Search across your estate | /api/search | v1 |
Examples
Search the breach collection for one value
curl "https://app.insecureweb.com/api/dark-web/live-scan?field=domain&search=example.com&page=0&size=50" \
-H "api-key: $INSECUREWEB_API_KEY"
field is one of email, domain, victimDomain, ipAddress, username, password, name, vin, address, phone or databaseName. Each search uses credits. The response includes an X-Live-Search-Hash header: send it back with the next page request within 20 minutes and paging is free. The total number of results is in the X-Total-Count header. See Live search for the rules on what can be searched.
Download an organization’s Threat Intelligence report
curl "https://app.insecureweb.com/api/threat-intelligence/$ORGANIZATION_UUID/report/pdf" \
-H "api-key: $INSECUREWEB_API_KEY" \
-H "api-version: v3" \
-o threat-intelligence.pdf
Start a penetration test
POST /api/threatexploit/pentests with api-version: v1 starts a test, with the same options as the console: targets (up to 10, each with a scope and a testing method), region, style, and exploitation on or off. The same rules apply as in the console: a paid, fully verified company or MSP account, and one test at a time. See AI Penetration Testing.
Errors
| Status | Meaning |
|---|---|
401 or 403 | The key is missing or wrong, has expired, or was used from an IP address it does not allow. The message says which. |
402 | Not enough credits, or no payment method, for this action. |
404 | The resource does not exist, or API keys cannot use this endpoint. |
406 | The endpoint does not exist in the API version you asked for. |
429 | Rate limit reached. |
451 | The target is legally restricted, such as a government or military domain. |
Errors include an X-App-Error header with a technical description.
Paging
List endpoints take page (starting at 0) and size, and return the total count in the X-Total-Count header. Some lists cap the page size; organizations, for example, return at most 20 per page.
Receiving findings as they happen
Polling the API for new findings is slow and uses your rate limit. Use webhooks instead: InsecureWeb sends new findings to your endpoint as soon as each run finishes.