← All REST endpoints

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/agentsstable

List registered agents

Parameters
NameInTypeRequiredDefaultAllowedDescription
allquerybooleanoptional——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

FieldTypeAllowedDescription
agents——Array of agent records.
agents[].idstring—Agent UUID.
agents[].agent_keystring—Immutable registry slug (^[a-z0-9][a-z0-9_-]{1,63}$).
agents[].display_namestring—Human-readable agent name.
agents[].descriptionstring—Free-text description, or null.
agents[].statusstringactive, suspended, deletedRegistry status.
agents[].owner_user_idstring—UUID of the owning user, or null.
agents[].inserted_atstring—Creation timestamp (ISO-8601).
agents[].updated_atstring—Last-update timestamp (ISO-8601).

Example

bash
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.

TheRobotRemembers - GET /api/v1/agents — REST API