Skip to content
Support

Schedule blocks API

Owner, AdminLast checked 25 November 20262 min readArticle ID: developers-api-schedule-blocks
On this page

2 endpoints for schedule blocks: list schedule blocks; get one schedule block.

List schedule blocks

GET /api/v1/schedule-blocks

Technicians' non-job time on the schedule. type is time_block (leave, lunch, admin; leave imported from V1 is a time block titled Leave) or task (a to-do assigned to the technician). Removed (archived) blocks are left out. Newest first in offset mode (meta.total); updated_since and cursor give sync mode. Unknown query parameters are ignored.

Scope: read:schedule_blocks

Parameters

NameInTypeRequiredDescription
technician_idundefinedobject
If-None-MatchheaderstringThe ETag of a copy you already have. When the response would be unchanged you get 304 Not Modified with no body. Tags are per business.
typequerytime_block, taskOnly blocks of this type.
fromquerystring (date-time)Only blocks that end after this instant. With to, the blocks that overlap the window [from, to), half-open like the calendar. An ISO 8601 date-time with a UTC offset.
toquerystring (date-time)Only blocks that start before this instant. Must be after from when both are sent. An ISO 8601 date-time with a UTC offset.
per_pagequeryintegerPage size. Out-of-range values are clamped to 1..100.
pagequeryintegerPage number, newest first. Offset mode only; ignored in sync mode.
updated_sincequerystringSwitches to sync mode: rows changed at or after this date or timestamp (a bare date is midnight UTC), oldest change first. Rows are listed once they have settled (5 seconds).
cursorquerystringThe meta.next_cursor of a previous response; continues strictly after the last row received. Switches to sync mode. A value this API did not issue is validation_failed.

Response: 200 OK

{
  "data": [
    {
      "id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
      "technician_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
      "type": "time_block",
      "title": "Annual leave",
      "start_at": "2026-11-03T01:00:00+00:00",
      "end_at": "2026-11-03T01:00:00+00:00",
      "is_completed": false,
      "notes": "Side gate is unlocked.",
      "created_at": "2026-11-03T01:00:00+00:00",
      "updated_at": "2026-11-03T01:00:00+00:00"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total": 1
  }
}

Errors: 304, 401, 403, 422, 429, 500, 503. See Errors.

Get one schedule block

GET /api/v1/schedule-blocks/{id}

One time block or task. A removed (archived) block is a 404, like every archived record.

Scope: read:schedule_blocks

Parameters

NameInTypeRequiredDescription
idpathstringyesThe record id (a ULID).
If-None-MatchheaderstringThe ETag of a copy you already have. When the response would be unchanged you get 304 Not Modified with no body. Tags are per business.

Response: 200 OK

{
  "data": {
    "id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "technician_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "type": "time_block",
    "title": "Annual leave",
    "start_at": "2026-11-03T01:00:00+00:00",
    "end_at": "2026-11-03T01:00:00+00:00",
    "is_completed": false,
    "notes": "Side gate is unlocked.",
    "created_at": "2026-11-03T01:00:00+00:00",
    "updated_at": "2026-11-03T01:00:00+00:00"
  }
}

Errors: 304, 401, 403, 404, 429, 500, 503. See Errors.

In this section