Hand off a zone's work
curl --request POST \ --url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/handoffs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "zone_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "task_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "work_name": "example", "kind": "done", "occurred_at": "2026-04-15T12:00:00Z", "note": "example", "defects": [ { "title": "example", "description": "example", "global_ids": [ "example" ], "blocking": true, "responsible_account_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ] }'Marks a zone’s task done, received, returned, approved or reopened, with defects that become findings on their elements, as the app’s handoff does. done needs the inspector role; received, returned, approved and reopened need the project admin role, which a scope such as inspections:write gives, or the answer is 403 INSUFFICIENT_PROJECT_ROLE. Each event names the integration (created_via, via_client_id). A repeat with the same Idempotency-Key and body returns the first answer with replayed: true.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”A repeat with the same key and body returns the first answer instead of writing again. Keys are per integration and project.
Request Bodyrequired
Section titled “Request Bodyrequired”The body of recordZoneHandoff.
object
One task of the zone; leave it out to hand off every task of work_name in the zone
A handoff transition.
A defect of recordZoneHandoff.
object
Elements of the zone the defect is on; none for a defect of the whole zone.
Blocks the next work from starting; a receive with one is recorded as returned.
The organisation responsible; by default the one that marked the task done.
Responses
Section titled “Responses”The events recorded and the defects raised
The answer to POST …/handoffs.
object
The kind stored: a receive with a blocking defect is stored as returned.
One handoff event.
object
New kinds may come
Null for a person in the app; agent, integration or app otherwise. New values may come.
The integration’s id or the app’s client id when created_via is integration or app
The registered name of the app when created_via is app; the app shows it as {person} · sovelluksella {app}
A defect of a handoff with its finding.
object
The finding’s guid
Example
{ "kind": "done", "events": [ { "kind": "done" } ]}VALIDATION_ERROR; HANDOFF_TRANSITION_INVALID for defects with a kind other than received or returned, or a reopen without a note; HANDOFF_BLOCKING_DEFECT_REQUIRED; HANDOFF_ELEMENT_NOT_IN_ZONE
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}Missing, malformed, expired or revoked token
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}INSUFFICIENT_SCOPE; INSUFFICIENT_PROJECT_ROLE when the project role the scopes give does not cover the write, or the project is not the integration’s; PUBLIC_API_DISABLED when the project’s owning organisation has turned the API off
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}No such project, zone or task
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}HANDOFF_TRANSITION_INVALID when the task is not in a state this kind follows or the zone changed meanwhile; HANDOFF_APPROVAL_OFF
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}IDEMPOTENCY_KEY_REUSED: the key was used with another body
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}RATE_LIMITED; wait for Retry-After seconds
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}