Workspaces · createWorkspace
Create a workspace
POST /v1/workspaces
A shared workspace; its creator is its first Owner. Humans only, and limited per account whatever the plan: a Free account owns up to 3 shared workspaces (25 once it owns one on Pro; the personal workspace doesn't count), creates at most 5 a day, and needs a verified email. Accounts above the limit keep what they own. 402 plan_limit (a Free account at its 3) or ceiling_reached (at the most an account may own), 429 rate_limited (5 a day; Retry-After runs to 00:00 UTC), 403 email_not_verified. Nothing is created in any of them.
- Who may call it
- any signed-in human
- Server
- https://api.logu.dev
Request body#
Content type application/json (required).
A new shared workspace. Strict.
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | required | 1–64 chars |
{
"name": "Acme ops"
}
Example#
curl -s -X POST "https://api.logu.dev/v1/workspaces" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Acme ops"}'
Responses#
201
The workspace.
{
"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 |
|---|---|---|---|
id | string | required | |
name | string | required | |
personal | boolean | required | |
role | "owner" | "decider" | "viewer" | required | |
plan | "free" | "pro" | required | |
createdAt | string | required | date-time |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request is malformed or a field is invalid (see issues). |
| 400 | unknown_field | The body has a field the endpoint doesn't know (often a typo or snake_case). |
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 402 | plan_limit | This is over one of the workspace's plan quotas: asks, events or metric reports this month, stored images, projects or metric names (Free and Pro), or on Free its agents, members and webhook endpoints (only on servers that enforce plan limits), or a Free account that already owns its shared workspaces (always). |
| 402 | ceiling_reached | The workspace reached one of Logu's cost ceilings (asks, events, metric reports, test traffic or images this month, stored image bytes, projects, metric names or API keys). Unlike plan_limit, upgrading doesn't lift it. An account that already owns the most shared workspaces an account may own gets it too. |
| 403 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 403 | email_not_verified | The signed-in human's email isn't verified yet, and this needs it (accepting an invitation, creating a shared workspace, or becoming the Owner of one). |
| 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. |