Taktovka Schedules API
The published roster: weeks, versions, shifts
The published roster: weeks, versions, shifts
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/taktovka-com:taktovka-com-schedules-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Taktovka Schedules API
version: 1.0.0
description: 'Read-only access to a company''s own data in Taktovka: locations, people, the published roster, attendance, hours, absences and leave balances.
Send the key as `Authorization: Bearer tk_…`; the owner creates keys in the app (Firma → API a integrácie). Never put a key in the URL or in a browser: CORS is off.
JSON fields are snake_case; `date` is the local date of the location (YYYY-MM-DD), `*_local` its wall-clock time (HH:MM), instants are ISO 8601 with an offset, minutes are integers.
Lists answer `{ "data": [...], "next_cursor": null }`, one object `{ "data": {...} }`, errors `{ "error": { "code", "message", "status", "request_id" } }`.
Rate limit: 10 requests a second per key (burst 30), 20 per company; see the RateLimit-* headers.
v1 never changes incompatibly; new fields may be added. Something incompatible would be /v2.'
servers:
- url: https://api.taktovka.com/v1
security:
- bearer: []
tags:
- name: Schedules
description: 'The published roster: weeks, versions, shifts'
paths:
/schedules:
get:
operationId: getSchedules
summary: Published weeks
description: 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.
tags:
- Schedules
x-scopes:
- schedules:read
security:
- bearer: []
parameters:
- name: from
in: query
required: true
description: First day, YYYY-MM-DD, included; years 2000–2100
schema:
type: string
format: date
- name: to
in: query
required: true
description: Last day, YYYY-MM-DD, included; years 2000–2100
schema:
type: string
format: date
- name: location
in: query
required: false
description: Only this location
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Schedule'
next_cursor:
type:
- string
- 'null'
required:
- data
- next_cursor
additionalProperties: false
example:
data:
- schedule_id: a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
location_id: 0c8e6a42-1f3b-4d5e-8a9b-7c6d5e4f3a2b
period_start: '2026-10-19'
period_end: '2026-10-25'
version: 2
published_at: '2026-10-09T14:12:05.000Z'
sha256: 4f1a0c7e9b2d3a6f8e5c1b0d9a7f6e4c3b2a1908f7e6d5c4b3a291807f6e5d4c
next_cursor: null
'400':
description: validation_failed, range_too_long or key_in_query
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: unauthenticated, invalid_key, key_revoked or key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: insufficient_scope (with required_scope)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited (with retry_after and a Retry-After header)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/schedules/{schedule_id}:
get:
operationId: getSchedule
summary: One published week with its shifts
description: 'The week as it was announced to people: the latest published version, or any earlier one with `version`. Versions never change once published. Changes the manager has not published yet are never in it.'
tags:
- Schedules
x-scopes:
- schedules:read
security:
- bearer: []
parameters:
- name: schedule_id
in: path
required: true
schema:
type: string
format: uuid
- name: version
in: query
required: false
description: A past version; the latest published one when left out
schema:
type: integer
minimum: 1
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ScheduleDetail'
required:
- data
additionalProperties: false
example:
data:
schedule_id: a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
location_id: 0c8e6a42-1f3b-4d5e-8a9b-7c6d5e4f3a2b
period_start: '2026-10-19'
period_end: '2026-10-25'
version: 2
published_at: '2026-10-09T14:12:05.000Z'
sha256: 4f1a0c7e9b2d3a6f8e5c1b0d9a7f6e4c3b2a1908f7e6d5c4b3a291807f6e5d4c
shifts:
- id: 7d6c5b4a-3f2e-4d1c-8b0a-9f8e7d6c5b4a
schedule_id: a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
version: 2
location_id: 0c8e6a42-1f3b-4d5e-8a9b-7c6d5e4f3a2b
position_id: 9e1d2c3b-4a5f-4e6d-8c7b-1a2b3c4d5e6f
date: '2026-10-24'
start_local: '22:00'
end_local: 06:00
tz: Europe/Bratislava
starts_at: '2026-10-24T22:00:00+02:00'
ends_at: '2026-10-25T06:00:00+01:00'
break_min: 30
minutes: 540
paid_minutes: 510
headcount: 1
assignments:
- employee_id: 3f2e1d0c-9b8a-4765-8432-10fedcba9876
state: confirmed
'400':
description: validation_failed, range_too_long or key_in_query
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: unauthenticated, invalid_key, key_revoked or key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: insufficient_scope (with required_scope)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'not_found: no such object in this company'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited (with retry_after and a Retry-After header)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/shifts:
get:
operationId: getShifts
summary: Published shifts
description: Shifts starting in the range, from the latest published version of each week. With `employee`, the shifts the person works (a seat they gave back is not theirs). `from` and `to` are local dates, both included, at most 93 days apart; `next_cursor` is always null.
tags:
- Schedules
x-scopes:
- schedules:read
security:
- bearer: []
parameters:
- name: from
in: query
required: true
description: First day, YYYY-MM-DD, included; years 2000–2100
schema:
type: string
format: date
- name: to
in: query
required: true
description: Last day, YYYY-MM-DD, included; years 2000–2100
schema:
type: string
format: date
- name: location
in: query
required: false
description: Only this location
schema:
type: string
format: uuid
- name: employee
in: query
required: false
description: Only this person
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Shift'
next_cursor:
type:
- string
- 'null'
required:
- data
- next_cursor
additionalProperties: false
example:
data:
- id: 7d6c5b4a-3f2e-4d1c-8b0a-9f8e7d6c5b4a
schedule_id: a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
version: 2
location_id: 0c8e6a42-1f3b-4d5e-8a9b-7c6d5e4f3a2b
position_id: 9e1d2c3b-4a5f-4e6d-8c7b-1a2b3c4d5e6f
date: '2026-10-24'
start_local: '22:00'
end_local: 06:00
tz: Europe/Bratislava
starts_at: '2026-10-24T22:00:00+02:00'
ends_at: '2026-10-25T06:00:00+01:00'
break_min: 30
minutes: 540
paid_minutes: 510
headcount: 1
assignments:
- employee_id: 3f2e1d0c-9b8a-4765-8432-10fedcba9876
state: confirmed
next_cursor: null
'400':
description: validation_failed, range_too_long or key_in_query
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: unauthenticated, invalid_key, key_revoked or key_expired
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: insufficient_scope (with required_scope)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited (with retry_after and a Retry-After header)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Schedule:
type: object
properties:
schedule_id:
type: string
format: uuid
location_id:
type: string
format: uuid
period_start:
type: string
format: date
description: Local date of the location, YYYY-MM-DD
period_end:
type: string
format: date
description: Local date of the location, YYYY-MM-DD
version:
type: integer
published_at:
type: string
format: date-time
description: ISO 8601 instant
sha256:
description: SHA-256 of the canonical snapshot; null for versions published before it was kept
type:
- string
- 'null'
required:
- schedule_id
- location_id
- period_start
- period_end
- version
- published_at
- sha256
additionalProperties: false
ScheduleDetail:
type: object
properties:
schedule_id:
type: string
format: uuid
location_id:
type: string
format: uuid
period_start:
type: string
format: date
description: Local date of the location, YYYY-MM-DD
period_end:
type: string
format: date
description: Local date of the location, YYYY-MM-DD
version:
type: integer
published_at:
type: string
format: date-time
description: ISO 8601 instant
sha256:
description: SHA-256 of the canonical snapshot; null for versions published before it was kept
type:
- string
- 'null'
shifts:
type: array
items:
$ref: '#/components/schemas/Shift'
required:
- schedule_id
- location_id
- period_start
- period_end
- version
- published_at
- sha256
- shifts
additionalProperties: false
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
enum:
- unauthenticated
- invalid_key
- key_revoked
- key_expired
- insufficient_scope
- module_off
- validation_failed
- range_too_long
- key_in_query
- not_found
- method_not_allowed
- rate_limited
- server_error
message:
type: string
status:
type: integer
request_id:
type: string
required_scope:
type: string
enum:
- company:read
- people:read
- people:contact
- schedules:read
- attendance:read
- absences:read
- absences:kinds
- leave:read
issues:
type: array
items:
type: object
properties:
path:
type: string
message:
type: string
required:
- path
- message
additionalProperties: false
retry_after:
type: integer
max_days:
type: integer
module:
type: string
required:
- code
- message
- status
- request_id
additionalProperties: false
required:
- error
additionalProperties: false
Shift:
type: object
properties:
id:
type: string
format: uuid
schedule_id:
type: string
format: uuid
version:
type: integer
description: The published version the shift is read from
location_id:
type: string
format: uuid
position_id:
anyOf:
- type: string
format: uuid
- type: 'null'
date:
type: string
format: date
description: Local date the shift starts on
start_local:
type: string
pattern: ^\d{2}:\d{2}$
description: Wall-clock time at the location, HH:MM
end_local:
type: string
pattern: ^\d{2}:\d{2}$
description: Wall-clock end; not after start_local means the next day
tz:
type: string
description: IANA time zone of the location when the version was published
starts_at:
type: string
format: date-time
description: ISO 8601 instant with the location's offset at that moment
ends_at:
type: string
format: date-time
description: ISO 8601 instant with the location's offset at that moment
break_min:
type: integer
description: Unpaid break, minutes
minutes:
type: integer
description: Elapsed minutes from start to end
paid_minutes:
type: integer
description: Elapsed minutes less the break
headcount:
type: integer
description: People the shift needs
assignments:
type: array
items:
type: object
properties:
employee_id:
type: string
format: uuid
state:
type: string
enum:
- assigned
- confirmed
- swap_requested
- declined
description: 'declined: the person gave the seat back and does not work it'
required:
- employee_id
- state
additionalProperties: false
required:
- id
- schedule_id
- version
- location_id
- position_id
- date
- start_local
- end_local
- tz
- starts_at
- ends_at
- break_min
- minutes
- paid_minutes
- headcount
- assignments
additionalProperties: false
securitySchemes:
bearer:
type: http
scheme: bearer
description: A company key, tk_ followed by 43 characters