LoguDocs
Open Logu

Agents · listAgents

List agents

GET /v1/agents

The workspace's agents, newest first, each with its active API keys (never their secrets) and how many asks and events it sent in the last 30 days.

Who may call it
humans: Deciders and up
Server
https://api.logu.dev

Parameters#

NameInTypeRequiredDescription
Logu-WorkspaceheaderstringoptionalHumans only: the workspace to act in (default: your personal workspace). Agents always act in their API key's workspace. · e.g. wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6

Example#

curl -s "https://api.logu.dev/v1/agents" \
  -H "Authorization: Bearer $LOGU_SESSION_TOKEN"

Responses#

200

Agents.

{
  "agents": [
    {
      "id": "agt_01K7D8F2H4K6M8P0R2T4V6X8Z0",
      "name": "deploy-bot",
      "notificationLevel": "asks_and_events",
      "createdAt": "2026-10-01T09:00:00.000Z",
      "apiKeys": [
        {
          "id": "key_01K7DB1A3C5E7G9J1L3N5Q7S9U",
          "name": "Claude",
          "prefix": "lga_",
          "test": false,
          "createdAt": "2026-10-02T09:00:00.000Z",
          "lastUsedAt": "2026-10-12T14:03:11.000Z",
          "connector": {
            "clientId": "oac_01K7DB3C5E7G9J1L3N5Q7S9U1W",
            "name": "Claude"
          }
        },
        {
          "id": "key_01K7D8F2J5N7Q9S1U3W5Y7A9C1",
          "name": "deploy-bot",
          "prefix": "lg_8fK2xQp",
          "test": false,
          "createdAt": "2026-10-01T09:00:00.000Z",
          "lastUsedAt": "2026-10-12T14:03:11.000Z",
          "connector": null
        }
      ],
      "asks30d": 14,
      "events30d": 62
    }
  ]
}
Response fields
FieldTypeRequiredNotes
agentsAgent[]required
agents[].idstringrequired
agents[].namestringrequired
agents[].notificationLevel"asks_and_events" | "asks_only" | "silent"required
agents[].createdAtstringrequireddate-time
agents[].apiKeysApiKey[]required
agents[].apiKeys[].idstringrequired
agents[].apiKeys[].namestringrequired
agents[].apiKeys[].prefixstringrequired
agents[].apiKeys[].testbooleanrequired
agents[].apiKeys[].createdAtstringrequireddate-time
agents[].apiKeys[].lastUsedAtstring | nullrequireddate-time
agents[].apiKeys[].connectorobject | nullrequired
agents[].asks30dintegerrequired
agents[].events30dintegerrequired

Errors#

Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.

StatusCodeMeaning
401unauthorizedNo credentials, or the API key or session is invalid or revoked.
403forbiddenThe caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint).
404not_foundNo such route, or the resource doesn't exist in your workspace.
500internal_errorSomething went wrong on Logu's side.