---
title: "List a service's resource requirements"
description: "Returns the service's resource requirements."
api_method: GET
api_path: "/v1/services/{serviceId}/resource-requirements"
canonical_url: https://wiblo.app/docs/developers/api/resources/list-service-resource-requirements
last_updated: 2026-07-28T18:08:25+02:00
md_url: https://wiblo.app/docs/developers/api/resources/list-service-resource-requirements.md
---

# List a service's resource requirements

`GET /v1/services/{serviceId}/resource-requirements`

Returns the service's resource requirements. A foreign service id is 404 `SERVICE_NOT_FOUND`, never an empty list. Available to any active member. Per-user rate-limited at 60/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `serviceId` | `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/services/3f8a2b9c-51d4-4e0b-9c6a-7d2e8f1a4b5c/resource-requirements \
  -H "Authorization: Bearer $WIBLO_TOKEN" \
  -H "X-Wiblo-Workspace: $WIBLO_WORKSPACE_ID"
```

**TypeScript**

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

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

const { data, error } = await listServiceResourceRequirements({
  client: sdk,
  path: { serviceId: "3f8a2b9c-51d4-4e0b-9c6a-7d2e8f1a4b5c" },
  headers: { "X-Wiblo-Workspace": "..." },
})
```

## Example response

```json
{
  "requirements": [
    {
      "id": "c5a9d1e7-3f6b-4c2d-8b9e-1f4a7c3d9e5b",
      "workspace_id": "9c1b7e24-6a3f-4d58-b2e9-0f4a8c6d1e37",
      "service_id": "3f8a2b9c-51d4-4e0b-9c6a-7d2e8f1a4b5c",
      "resource_id": "a7c3e9f1-2b8d-4f6a-9e1c-5d7b3a9f2e8c",
      "category": null,
      "quantity": 1,
      "created_at": "2026-06-15T10:30:00.000Z",
      "updated_at": "2026-06-15T10:30:00.000Z"
    },
    {
      "id": "f1d7a3c9-5e8b-4a1f-9c6d-2b8e4f7a1c3d",
      "workspace_id": "9c1b7e24-6a3f-4d58-b2e9-0f4a8c6d1e37",
      "service_id": "3f8a2b9c-51d4-4e0b-9c6a-7d2e8f1a4b5c",
      "resource_id": null,
      "category": "equipment",
      "quantity": 1,
      "created_at": "2026-07-28T09:12:00.000Z",
      "updated_at": "2026-07-28T09:12:00.000Z"
    }
  ]
}
```

## Responses

**`200`** — The service's resource requirements. Returns `ResourceRequirementListResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `requirements` | `array<ResourceRequirementResponse>` | Yes | The service's resource requirements, ordered by creation time. |

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

**`404`** — No service visible to the actor with this id (`SERVICE_NOT_FOUND`), or the workspace 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`.

### The ResourceRequirementResponse object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | Unique id of the requirement. |
| `workspace_id` | `string` | Yes | Workspace the requirement belongs to. |
| `service_id` | `string` | Yes | Service the requirement is attached to. |
| `resource_id` | `string \| null` | Yes | The specific resource required; `null` for a category requirement. |
| `category` | `string \| null` | Yes | The category pool drawn from; `null` for a specific-resource requirement. |
| `quantity` | `integer` | Yes | How many distinct free resources the category's pool must supply per booking; always `1` for a specific-resource requirement. |
| `created_at` | `string` | Yes | Creation timestamp (RFC 3339). |
| `updated_at` | `string` | Yes | Last-update timestamp (RFC 3339). |
