GET /api/public/trident/agents
Fetch the full agent inventory for your project, sorted by critical finding count descending. Endpoint:GET https://app.usetrident.dev/api/public/trident/agents
Authentication: HTTP Basic — see Authentication
Query parameters
Filter the response to a single agent by its exact ID. Omit to return all
agents in the project.
Example request
curl
Example response
Response fields
Total number of agents returned.
Array of agent objects, sorted by
criticalFindings descending.How agents are registered
Trident builds the agent inventory from two sources:- Findings and certificates — any agent that has received a red-team finding, a firewall event, or a Trident certificate is automatically added to the inventory. You do not need to register agents manually.
-
SDK initialisation — when your agent calls
trident.init({ agentId: "my-agent" })at startup, Trident registers that agent in your project. TheagentIdstring must match the pattern[a-zA-Z0-9._-]+.
Agents running on platforms that expose public URLs as environment variables —
Vercel (
VERCEL_URL), Fly.io (FLY_PUBLIC_IP), Render (RENDER_EXTERNAL_URL),
Railway (RAILWAY_PUBLIC_DOMAIN), and Heroku (HEROKU_APP_NAME) — are
auto-registered with their public URL so the Trident scanner can reach them
without any additional configuration.