Send POST /api/scans to launch a scan for a profile, using a token whose owner holds scan:run. For pipelines, POST /api/ci/scan takes a profileId and an optional commitSha instead. Then read the scan's status and findings.
Steps
- Authenticate each request with your Bearer token. Read how to authenticate if you have not done this yet.
- Find the profile you want to scan and note its ID.
- Call
POST /api/scans. The reference describes it as "Launch a scan for a profile" and listsscan:runas the permission. - For a pipeline, send
POST /api/ci/scanwith aprofileIdin the body and, if you wish, acommitSha. That route needsci:triggerand returns ascanId. - Follow the run with
GET /api/scans/:idor, for the CI route,GET /api/ci/result/:scanId, and keep checking until the response says the scan has finished, because a typical scan of a small app takes roughly an hour.
Good to know
This page lists the route and the permission, but it does not spell out every field of the request body for the general launch call. The ⤓ OpenAPI button on the page downloads the full spec, so check there for the exact body.
| Route | Permission | Use it for |
|---|---|---|
POST /api/scans | scan:run | Launching from your own code |
POST /api/ci/scan | ci:trigger | Pipelines, by profile ID or name |
GET /api/scans/:id | scan:read | Reading one scan |
A launched scan behaves like a button press in the app. You will see it in Recent Scans, and the scan detail page shows who started it. It runs with your permissions and group scope, and you can stop a run by calling POST /api/scans/:id/cancel, which needs scan:cancel. That keeps a mistaken launch from running to the end.
Looking for the CI route in more detail? See how to trigger a scan from your pipeline.
Related questions
- How do I trigger a Cyberlop scan from my CI pipeline?
- How do I check a CI-triggered scan's result through the API?
- How do I pull the findings for one scan through the API?
- How do I authenticate requests to the Cyberlop API?
- Can I trigger a CI scan by profile name instead of profile ID?
Cyberlop API reference: authentication, permissions and the OpenAPI spec
Step-by-step, with annotated screenshots.
Updated · Back to the help centre
Wiring it into your pipeline?
Share what you are building and we will help you set up the right token, profile and job.