LoguDocs
Open Logu

API reference

Agents

Agents and their API keys. An agent is anything that calls Logu from code; it belongs to a workspace.

MethodPathWhat it does
GET/v1/agentsList agents
POST/v1/agentsCreate an agent and its first API key
PATCH/v1/agents/{id}Change an agent's notification level
DELETE/v1/agents/{id}Delete an agent
POST/v1/agents/{id}/api-keysCreate another API key
DELETE/v1/agents/{id}/api-keys/{keyId}Revoke an API key
POST/v1/device/codeStart connecting an agent (device code)
POST/v1/device/tokenPoll for the connected agent's API key
GET/v1/device/{userCode}Look up a user code
POST/v1/device/approveConnect the agent (approve a user code)
POST/v1/device/denyCancel connecting an agent
GET/v1/oauth/requests/{id}Look up a connector request
POST/v1/oauth/requests/{id}/approveConnect a connector
POST/v1/oauth/requests/{id}/denyCancel connecting a connector