---
title: "Clock In"
method: POST
path: "/api/shifts/clock-in"
tags: ["shifts"]
---

# Clock In

`POST /api/shifts/clock-in`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/shifts/clock-in`
- Auth: none declared

Start your own shift. Never anybody else's -- the principal comes from
the session, and there is no parameter to name a different person.

A THIN CALLER of `service.clock_in`, the one clock-in. Frederick,
2026-10-04: "Why isn't it only one flow for her floor, floor block and
clocking out? It doesn't make sense for it to be two paths." This door
and `POST /api/floor/clock-in` differ only in what they say to the
person: the device gate and the words of a refusal, and how an error is
spelled on the wire. Whether the person holds a floor block, whether a
tub count is owed, what the early/late window is measured against --
none of that is decided here.

⛔WORKSTATION-ONLY ROLES CLOCK IN AT A WORKSTATION, THROUGH THE
CONTRACTOR'S OWN GATE. Frederick, 2026-09-22: "the people in Vegas can
only clock in from the workstations in Vegas." `floor_blocks.clock.
check_device_gate` holds a floor person to the office network or a
registered workstation; `floor_clock.workstation_surface_for` is the ONE
question of who that covers -- an on-site ROLE (`shifts.domain.
ON_SITE_ROLES`) and, since 2026-10-04, a floor CONTRACTOR, who this door
never asked (they hold no on-site role; the Today bar sent them to
/floor/clock, which hid the hole). Customer service is not on site and is
not asked: "customer service people can clock in from home." Every
refusal is recorded (`enforce_device_gate`) so William sees who tried.

## Request body

- ClockInRequest, nullable: Optional. The Today bar posts nothing; the floor's own door names the block and the day's tub count, and so may anything else that knows them. Either way the SAME function decides (`service.clock_in`).
  - `block_id` string, uuid, nullable
  - `company_terms_version_id` string, uuid, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-12** `46e89221774f`: 1 info
  - added the new optional request property `anyOf[subschema #1: ClockInRequest]/company_terms_version_id`
- **2026-11-09** `a5a71d2b9855`: 1 warning
  - removed the request property `anyOf[subschema #1: ClockInRequest]/tubs`

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/shifts/clock-in/post.md)

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
