Agents
Agents and their API keys. An agent is anything that calls Logu from code; it belongs to a workspace.
| Method | Path | What it does |
|---|---|---|
| GET | /v1/agents | List agents |
| POST | /v1/agents | Create 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-keys | Create another API key |
| DELETE | /v1/agents/{id}/api-keys/{keyId} | Revoke an API key |
| POST | /v1/device/code | Start connecting an agent (device code) |
| POST | /v1/device/token | Poll for the connected agent's API key |
| GET | /v1/device/{userCode} | Look up a user code |
| POST | /v1/device/approve | Connect the agent (approve a user code) |
| POST | /v1/device/deny | Cancel connecting an agent |
| GET | /v1/oauth/requests/{id} | Look up a connector request |
| POST | /v1/oauth/requests/{id}/approve | Connect a connector |
| POST | /v1/oauth/requests/{id}/deny | Cancel connecting a connector |