Me · getMe
Who is calling
GET /v1/me
With an API key: the agent, its API key (apiKey.test: a test API key, whose asks, events and metrics are shown in the app but never delivered) and workspace, and the limits that apply (field lengths, ask expiry bounds, the longest wait, idempotency key lifetime, rate limits per minute). With a session: the human's account.
- Who may call it
- Agents (API key); any signed-in human
- Server
- https://api.logu.dev
Example#
curl -s "https://api.logu.dev/v1/me" \
-H "Authorization: Bearer $LOGU_API_KEY"
Responses#
200
The agent (kind: "agent") or the human (kind: "human").
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 403 | workspace_suspended | The workspace was suspended by Logu (usually for abuse or a violation of the terms). Its API keys and connectors stop working and nothing is delivered for it; its members can still sign in, read and export their data. |
| 429 | rate_limited | This API key sent too many requests, or a human did too much too fast: sign-in attempts, workspaces created in a day, or a global daily cap on new accounts was reached. |
| 500 | internal_error | Something went wrong on Logu's side. |