Crew compliance snapshot (scope: crew:compliance:read)
Compliance snapshot for a crew member, from the existing projections.
Reads crewComplianceSnapshots / crewCompliance as the source of
truth — never re-derived here. 404 if the crew is not on an attached vessel.
Pass vessel_id (from a fleet row) when the crew has placements on
multiple attached vessels so the per-vessel snapshot is unambiguous.
Authorizations
Partner API key (cpk_live_* / cpk_test_*) as a Bearer token.
Path Parameters
Query Parameters
Body
POST /employers/me/crew/{id}/compliance-checks request body.
Currently empty: the endpoint returns the crew member's current compliance
projection as-is. Point-in-time (as_of) and required-cert filtering are
intentionally not exposed yet — honouring them would mean re-deriving
compliance here, which is forbidden (CLAUDE.md). They will return when the
underlying snapshot supports them.
Response
Successful Response
Compliance snapshot — mirrors the internal projections (never re-derived).
The roll-up counts and source are unchanged; requirements /stcw
/medical are an additive role/STCW/medical breakdown read straight from
crewComplianceSnapshots (criticalGaps) and crewCompliance
(STCW modules + the ENG1 medical block).