---
title: Fetch a single resource
description: Returns one resource (archived included).
api_method: GET
api_path: "/v1/resources/{resourceId}"
canonical_url: https://wiblo.app/docs/developers/api/resources/get-resource
last_updated: 2026-07-28T18:08:25+02:00
md_url: https://wiblo.app/docs/developers/api/resources/get-resource.md
---

# Fetch a single resource

`GET /v1/resources/{resourceId}`

Returns one resource (archived included). Cross-workspace ids and unknown ids collapse onto the same 404 `RESOURCE_NOT_FOUND`. Per-user rate-limited at 60/60s.

## Path parameters

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

## Headers

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `X-Wiblo-Workspace` | `string` | Yes | Workspace id the call is scoped to. The actor must hold an active membership in it; a foreign or unknown id collapses onto 404 WORKSPACE_NOT_FOUND. |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/resources/a7c3e9f1-2b8d-4f6a-9e1c-5d7b3a9f2e8c \
  -H "Authorization: Bearer $WIBLO_TOKEN" \
  -H "X-Wiblo-Workspace: $WIBLO_WORKSPACE_ID"
```

**TypeScript**

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

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

const { data, error } = await getResource({
  client: sdk,
  path: { resourceId: "a7c3e9f1-2b8d-4f6a-9e1c-5d7b3a9f2e8c" },
  headers: { "X-Wiblo-Workspace": "..." },
})
```

## Example response

```json
{
  "id": "a7c3e9f1-2b8d-4f6a-9e1c-5d7b3a9f2e8c",
  "workspace_id": "9c1b7e24-6a3f-4d58-b2e9-0f4a8c6d1e37",
  "name": "Consultation room",
  "category": "meeting-room",
  "capacity": 1,
  "archived_at": null,
  "created_at": "2026-06-15T10:00:00.000Z",
  "updated_at": "2026-06-15T10:00:00.000Z"
}
```

## Responses

**`200`** — The resource. Returns `ResourceResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | Unique id of the resource. |
| `workspace_id` | `string` | Yes | Workspace the resource belongs to. |
| `name` | `string` | Yes | Display name of the resource. |
| `category` | `string \| null` | Yes | Pool label that category requirements draw from; `null` for an uncategorised resource. |
| `capacity` | `integer` | Yes | Concurrent bookings this one resource can hold at any instant — capacity `N` lets `N` bookings overlap on the same resource. |
| `archived_at` | `string \| null` | Yes | When the resource was archived; `null` for active resources. |
| `created_at` | `string` | Yes | Creation timestamp (RFC 3339). |
| `updated_at` | `string` | Yes | Last-update timestamp (RFC 3339). |

**`401`** — No valid session cookie or `wbl_*` bearer was present. Returns `ApiErrorEnvelope`.

**`404`** — No resource visible to the actor with this id in this workspace (`RESOURCE_NOT_FOUND`), or the workspace itself collapsed (`WORKSPACE_NOT_FOUND`). 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`.
