Workspaces · listWorkspaces
List your workspaces
GET /v1/workspaces
Every workspace the member belongs to, with their role. The personal one is created at sign-up and can't be deleted.
- Who may call it
- any signed-in human
- Server
- https://api.logu.dev
Example#
curl -s "https://api.logu.dev/v1/workspaces" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN"
Responses#
200
Workspaces.
{
"workspaces": [
{
"id": "wsp_Xq3bY7tLmN2pR8sV",
"name": "Ana",
"personal": true,
"role": "owner",
"plan": "free",
"createdAt": "2026-10-01T08:55:00.000Z"
},
{
"id": "wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6",
"name": "Acme ops",
"personal": false,
"role": "owner",
"plan": "pro",
"createdAt": "2026-10-02T12:00:00.000Z"
}
]
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
workspaces | Workspace[] | required | |
workspaces[].id | string | required | |
workspaces[].name | string | required | |
workspaces[].personal | boolean | required | |
workspaces[].role | "owner" | "decider" | "viewer" | required | |
workspaces[].plan | "free" | "pro" | required | |
workspaces[].createdAt | string | required | date-time |
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 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 500 | internal_error | Something went wrong on Logu's side. |