Skip to main content

API overview

The SecUp REST API gives you everything the console does for targets, scans, scheduled scans, risks and reports. Use it to plug SecUp into your CI/CD, your inventory or your own dashboards. The full list of operations is in the API reference.

Base URL​

https://platform.secup.app/api/v1

All requests and responses use JSON (Content-Type: application/json), except report downloads.

Authentication​

Create an API key in Settings → API keys (workspace administrators only). The key starts with sk_secup_ and is shown once: store it in your secrets manager. SecUp keeps only a hash of it.

Send it in the X-SECUP-API-KEY header:

curl https://platform.secup.app/api/v1/scanners \
-H "X-SECUP-API-KEY: sk_secup_…"

API access is included in the Premium and Professional plans and during the free trial. On other plans, requests with an API key are refused with 403.

Roles​

Each key has a role, chosen when you create it:

RoleCan
viewerRead targets, scans, risks, reports.
analyst (default)Everything a viewer can, plus create targets, start and stop scans, manage schedules, accept risks.
adminEverything, plus webhooks, API keys and team management.

Give each integration its own key with the smallest role it needs, and revoke a key (Settings → API keys) as soon as it is no longer used.

Pagination​

List operations take page (starting at 0) and page_size (1 to 500, default 50), and return:

{ "data": [ … ], "total": 1342 }

Errors​

Errors return a JSON body with an error message:

{ "error": "target_ids must contain 1 to 100 targets" }
StatusMeaning
400The request is invalid; the message says why.
401Missing or invalid API key.
402Not included in your plan, trial ended, or monthly target quota reached.
403Your key's role does not allow this, or your plan has no API access.
404Not found in your workspace.
409Conflict with the current state (for example, deleting a running scan).
429Too many requests; retry after the time given in the RateLimit-Reset header.

Limits​

  • Write requests (POST, PATCH, DELETE) are rate-limited per IP address over 15-minute windows. Reads are not.
  • A scan covers 1 to 100 targets; some scan types accept fewer per scan (see Scan types).
  • Your plan's monthly quota of different targets scanned applies to API scans too.

Scan type identifiers​

Use the identifiers listed in Scan types, for example WEB_PASSIVE, KNOWN_VULNERABILITIES, PORTS_TCP or TLS. GET /scanners returns the ones available on your plan.