---
title: "List the workspace's schedules"
description: Returns every schedule in the workspace named by X-Wiblo-Workspace, availability rows embedded, defaults first then oldest first.
api_method: GET
api_path: "/v1/schedules"
canonical_url: https://wiblo.app/docs/developers/api/schedules/list-schedules
last_updated: 2026-07-28T18:08:25+02:00
md_url: https://wiblo.app/docs/developers/api/schedules/list-schedules.md
---

# List the workspace's schedules

`GET /v1/schedules`

Returns every schedule in the workspace named by `X-Wiblo-Workspace`, availability rows embedded, defaults first then oldest first. Optional owner filters: `member_id`, `service_id`, `resource_id`. Available to any active member. Per-user rate-limited at 60/60s.

## Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `member_id` | `string` | No |  |
| `service_id` | `string` | No |  |
| `resource_id` | `string` | No |  |

## 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/schedules?member_id=5f2d8c1b-7e4a-4b9d-a6c3-1d8e5f2a7b4c" \
  -H "Authorization: Bearer $WIBLO_TOKEN" \
  -H "X-Wiblo-Workspace: $WIBLO_WORKSPACE_ID"
```

**TypeScript**

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

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

const { data, error } = await listSchedules({
  client: sdk,
  query: { member_id: "5f2d8c1b-7e4a-4b9d-a6c3-1d8e5f2a7b4c" },
  headers: { "X-Wiblo-Workspace": "..." },
})
```

## Example response

```json
{
  "schedules": [
    {
      "id": "e6a91c4d-2b7f-4a3e-8d5c-1f9b3e7a5c2d",
      "workspace_id": "9c1b7e24-6a3f-4d58-b2e9-0f4a8c6d1e37",
      "member_id": "5f2d8c1b-7e4a-4b9d-a6c3-1d8e5f2a7b4c",
      "service_id": null,
      "resource_id": null,
      "name": "Weekday hours",
      "timezone": "Europe/London",
      "is_default": true,
      "availability": [
        {
          "id": "b2d74f8e-1c5a-4d9b-a3e7-6c8f2b4d9e1a",
          "workspace_id": "9c1b7e24-6a3f-4d58-b2e9-0f4a8c6d1e37",
          "schedule_id": "e6a91c4d-2b7f-4a3e-8d5c-1f9b3e7a5c2d",
          "days": [
            1,
            2,
            3,
            4,
            5
          ],
          "start_time": "09:00:00",
          "end_time": "17:00:00",
          "date": null,
          "created_at": "2026-08-03T09:15:00.000Z",
          "updated_at": "2026-08-03T09:15:00.000Z"
        },
        {
          "id": "a9e35d7c-4f2b-4e8a-9c6d-5b1e8a3f7d2c",
          "workspace_id": "9c1b7e24-6a3f-4d58-b2e9-0f4a8c6d1e37",
          "schedule_id": "e6a91c4d-2b7f-4a3e-8d5c-1f9b3e7a5c2d",
          "days": [],
          "start_time": "10:00:00",
          "end_time": "13:00:00",
          "date": "2026-09-04",
          "created_at": "2026-08-17T14:30:00.000Z",
          "updated_at": "2026-08-17T14:30:00.000Z"
        },
        {
          "id": "f4c82e6b-9d1a-4c5e-b7a3-2e6d8f4a1c9b",
          "workspace_id": "9c1b7e24-6a3f-4d58-b2e9-0f4a8c6d1e37",
          "schedule_id": "e6a91c4d-2b7f-4a3e-8d5c-1f9b3e7a5c2d",
          "days": [],
          "start_time": "00:00:00",
          "end_time": "00:00:00",
          "date": "2026-08-31",
          "created_at": "2026-08-17T14:35:00.000Z",
          "updated_at": "2026-08-17T14:35:00.000Z"
        }
      ],
      "created_at": "2026-08-03T09:15:00.000Z",
      "updated_at": "2026-08-03T09:15:00.000Z"
    }
  ]
}
```

## Responses

**`200`** — The workspace's schedules with availability embedded. Returns `ScheduleListResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `schedules` | `array<ScheduleResponse>` | Yes | The workspace's schedules, defaults first then oldest first. |

**`400`** — The `X-Wiblo-Workspace` header was missing or not a UUID, or a filter was malformed (`VALIDATION_FAILED`). Returns `ApiErrorEnvelope`.

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

**`404`** — The actor has no active membership in the header's workspace (`WORKSPACE_NOT_FOUND`). 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 ScheduleResponse object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | Unique id of the schedule. |
| `workspace_id` | `string` | Yes | Workspace the schedule belongs to. |
| `member_id` | `string \| null` | Yes | Owning workspace member; `null` unless member-owned. Exactly one of the three owner ids is non-null. |
| `service_id` | `string \| null` | Yes | Owning service; `null` unless service-owned. |
| `resource_id` | `string \| null` | Yes | Owning resource; `null` unless resource-owned. |
| `name` | `string` | Yes | Display name of the schedule. |
| `timezone` | `string` | Yes | IANA time zone the schedule's times are interpreted in. |
| `is_default` | `boolean` | Yes | Whether this is the owning member's default schedule; always `false` on service/resource schedules. |
| `availability` | `array<AvailabilityRowResponse>` | Yes | All availability rows — weekly rules and date overrides. |
| `created_at` | `string` | Yes | Creation timestamp (RFC 3339). |
| `updated_at` | `string` | Yes | Last-update timestamp (RFC 3339). |

### The AvailabilityRowResponse object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | Unique id of the availability row. |
| `workspace_id` | `string` | Yes | Workspace the row belongs to. |
| `schedule_id` | `string` | Yes | Schedule the row belongs to. |
| `days` | `array<integer>` | Yes | Days of week (`0`–`6`, `0` = Sunday) for weekly rules; `[]` on date-override rows. |
| `start_time` | `string` | Yes | Window start as `HH:mm:ss` (responses carry seconds; requests send `HH:mm`). |
| `end_time` | `string` | Yes | Window end as `HH:mm:ss`; a `00:00:00`/`00:00:00` pair is the day-off sentinel. |
| `date` | `string \| null` | Yes | Date the override row pins (`YYYY-MM-DD`); `null` on weekly rules. |
| `created_at` | `string` | Yes | Creation timestamp (RFC 3339). |
| `updated_at` | `string` | Yes | Last-update timestamp (RFC 3339). |
