Home / Help centre / Integrations & API
Integrations & API
How do I manage scan agents through the API?
Use GET /api/agents to list agents with live online or offline status, POST /api/agents to register one and receive a one-time enrollment token, and DELETE /api/agents/:id to revoke one. Registering and revoking both need the settings:update permission.
Steps
- Send your Bearer token with each request.
- List agents with
GET /api/agents. Each one comes back with live online or offline status, and the call needsprofile:read. - Register an agent with
POST /api/agents. The response carries a one-time enrollment token that you see once, so save it straight away. This needssettings:update. - Run the agent container inside your network with that token. After first start it trades the token for a durable key and shows as online.
- Retire an agent with
DELETE /api/agents/:id, again withsettings:update.
Good to know
| Route | What it does | Permission |
|---|---|---|
GET /api/agents | Lists agents with live status | profile:read |
POST /api/agents | Registers an agent and returns the token | settings:update |
DELETE /api/agents/:id | Revokes an agent | settings:update |
Revoking invalidates the agent's key at once, and any profile that used it goes back to the Cyberlop cloud. Check who relies on an agent before you remove it. A profile that scans a private app will then try to reach it from outside your network.
The agent talks to Cyberlop over outbound HTTPS only, so no inbound ports need opening. The messages between agent and cloud use the agent key, and you never call them yourself. The operator routes above are the supported way to manage agents.
The same actions live in the app under Settings → Scan Agents, where the Add agent button gives you the token and a ready-made container command. Prefer clicking? Read the self-hosted scan agents guide. For API basics, start with how to authenticate requests.
Related questions
- How do I authenticate requests to the Cyberlop API?
- How do I find the endpoint I need and the permission it requires?
- How do I launch a scan through the API?
- Why does my API call return a permission error?
- What can I do with the Cyberlop API?
Cyberlop self-hosted scan agents: scan private apps from inside your network
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.