---
title: "Fetch a single workspace with the caller's role"
description: "Returns the workspace's identity + the caller's resolved role in one shot, so the dashboard can render workspace-scoped UI without a second round-trip."
api_method: GET
api_path: "/v1/workspaces/{workspaceId}"
canonical_url: https://wiblo.app/docs/developers/api/workspaces/get-workspace
last_updated: 2026-08-03T21:24:33+02:00
md_url: https://wiblo.app/docs/developers/api/workspaces/get-workspace.md
---

# Fetch a single workspace with the caller's role

`GET /v1/workspaces/{workspaceId}`

Returns the workspace's identity + the caller's resolved role in one shot, so the dashboard can render workspace-scoped UI without a second round-trip. Cross-tenant probes and not-found UUIDs collapse onto the same 404 `WORKSPACE_NOT_FOUND` envelope (no existence leak). Per-user rate-limited at 120/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `workspaceId` | `string` | Yes |  |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/workspaces/{workspaceId} \
  -H "Authorization: Bearer $WIBLO_TOKEN"
```

**TypeScript**

```ts
import { createSdk, getWorkspace } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await getWorkspace({
  client: sdk,
  path: { workspaceId: "..." },
})
```

## Responses

**`200`** — The workspace plus the caller's role. Returns `WorkspaceResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes |  |
| `slug` | `string` | Yes |  |
| `name` | `string` | Yes |  |
| `avatar_url` | `string \| null` | Yes |  |
| `accent_hue` | `"red" \| "coral" \| "orange" \| "green" \| "teal" \| "blue" \| ...` | Yes | Stored accent key; `null` means the tile derives its colour from the id hash. |
| `created_at` | `string` | Yes |  |
| `updated_at` | `string` | Yes |  |
| `archived_at` | `string \| null` | Yes |  |
| `role` | `"owner" \| "admin" \| "member"` | Yes |  |

**`401`** — No valid Supabase session cookie was present. Returns `ApiErrorEnvelope`.

**`404`** — Caller has no active membership in the workspace, or the workspace does not exist (`WORKSPACE_NOT_FOUND`). Both cases share the envelope to avoid leaking existence. Returns `ApiErrorEnvelope`.

**`422`** — Path param failed UUID validation (`INVALID_PARAMS`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.
