GET /api/v1/agents
Auth: Guardian JWT (Authorization: Bearer) from login or register. Machine credentials (trm_…) are not JWTs and never reach this surface — agents and credentials are managed by their human owner only.
GET
/api/v1/agentsstableList registered agents
| Name | In | Type | Required | Default | Allowed | Description |
|---|---|---|---|---|---|---|
all | query | boolean | optional | — | — | Pass true as a global admin to list every agent. Accepted (and ignored) for other callers. |
Lists the agents the caller can see: a user gets the registry's assignment for them, an admin passing all=true gets every agent.
Response
| Field | Type | Allowed | Description |
|---|---|---|---|
agents | — | — | Array of agent records. |
agents[].id | string | — | Agent UUID. |
agents[].agent_key | string | — | Immutable registry slug (^[a-z0-9][a-z0-9_-]{1,63}$). |
agents[].display_name | string | — | Human-readable agent name. |
agents[].description | string | — | Free-text description, or null. |
agents[].status | string | active, suspended, deleted | Registry status. |
agents[].owner_user_id | string | — | UUID of the owning user, or null. |
agents[].inserted_at | string | — | Creation timestamp (ISO-8601). |
agents[].updated_at | string | — | Last-update timestamp (ISO-8601). |
Example
curl https://therobot.is/api/v1/agents \
-H "Authorization: Bearer EXAMPLE_JWT"Errors
401{ "error": "Authentication required" }A well-formed but unknown or revoked trm_ bearer. The response does not say which.