---
title: "Published weeks"
method: GET
path: "/schedules"
tags: ["schedules"]
---

# Published weeks

`GET /schedules`

## Request

- Base URL: `https://api.taktovka.com/v1`
- URL: `https://api.taktovka.com/v1/schedules`
- Auth: HTTP bearer

Weeks (planning periods) touching the range that have been published, each at its latest version. A week that was never published is not listed. `from` and `to` at most 366 days apart; `next_cursor` is always null.

## Query parameters

- `from` string, date, required
- `to` string, date, required
- `location` string, uuid

## Response `200`

OK

- object
  - `data` Schedule[], required
    - `schedule_id` string, uuid, required
    - `location_id` string, uuid, required
    - `period_start` string, date, required: Local date of the location, YYYY-MM-DD
    - `period_end` string, date, required: Local date of the location, YYYY-MM-DD
    - `version` integer, required
    - `published_at` string, date-time, required: ISO 8601 instant
    - `sha256` string, nullable, required: SHA-256 of the canonical snapshot; null for versions published before it was kept
  - `next_cursor` string, nullable, required

## Other responses

- `400`: validation_failed, range_too_long or key_in_query
- `401`: unauthenticated, invalid_key, key_revoked or key_expired
- `403`: insufficient_scope (with required_scope)
- `429`: rate_limited (with retry_after and a Retry-After header)

---

[API](https://skmtc.dev/taktovka/apis/taktovka-api.md) · [All operations](https://skmtc.dev/taktovka/apis/taktovka-api/llms.txt) · [OpenAPI document](https://skmtc.dev/taktovka/apis/taktovka-api/revisions/612199b365e1?raw)
