Skip to content
Suomi

Inspections with their steps and checks, changed in a window

GET
/v1/inspections
Code sample: Shell / cURL
curl --request GET \
--url 'https://api.whatsbuilt.fi/v1/inspections?limit=200&status=not_started' \
--header 'Authorization: Bearer <token>'

Rows changed in [modified_from, modified_to), deletions included, in (project_id, changed_at, key) order. Only next_cursor = null ends the list; a page may hold fewer rows than limit, even none. Without modified_from: every live row and no deletions.

Key id. Steps come in the template’s order, each with its checks; a change to a step or a check changes the inspection. status filters live rows only; deletions come whatever the filter. inspected_by_name is read when answering.

modified_from

Inclusive lower bound on changed_at, an RFC 3339 time with an offset (Z or ±hh:mm) and at most 9 fractional digits, e.g. 2026-11-17T00:00:00Z; digits past microseconds are dropped. Without it: every live row and no deletions.

string

Inclusive lower bound on changed_at, an RFC 3339 time with an offset (Z or ±hh:mm) and at most 9 fractional digits, e.g. 2026-11-17T00:00:00Z; digits past microseconds are dropped. Without it: every live row and no deletions.

modified_to

Exclusive upper bound, an RFC 3339 time with an offset (Z or ±hh:mm) and at most 9 fractional digits, e.g. 2026-11-17T00:00:00Z; digits past microseconds are dropped; default and maximum: the settled time

string

Exclusive upper bound, an RFC 3339 time with an offset (Z or ±hh:mm) and at most 9 fractional digits, e.g. 2026-11-17T00:00:00Z; digits past microseconds are dropped; default and maximum: the settled time

project_id

Repeatable, at most 50 times

Any of:
string format: uuid

Repeatable, at most 50 times

limit
integer
default: 200 >= 1 <= 1000
cursor
string
<= 12288 characters
status
string
Allowed values: not_started in_progress completed failed

One page

Media typeapplication/json

One page of the list.

object
data
required

The rows.

Array

An item of GET /v1/inspections.

One of:

A live inspection.

object
id
required

The inspection.

string format: uuid
project_id
required

The project.

string format: uuid
global_id
required

The element’s IFC GlobalId.

string
plan_id
required

The plan it belongs to.

string | null format: uuid
template_id
required

Its template.

string format: uuid
status
required

Its status.

string
current_step
required

The step under way.

integer format: int32
topic_guid
required

Its topic.

string | null format: uuid
number
required

The inspection number, INSP-00001 onwards per project; null until the inspection is opened

string | null
steps
required

Its steps in the template’s order.

Array<object>

A step of an inspection.

object
id
required

The step result.

string format: uuid
step_id
required

The template step.

string format: uuid
status
required

Its status.

string
inspected_by
required

Who recorded it.

string | null
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
inspected_by_name
required

Their name, read when answering.

string | null
created_via
required
One of:

Integration or app when it was recorded through this API; shown as Integraatio · {name}

string
Allowed values: agent integration app
via_client_id
required

The integration’s id or the app’s client id when created_via is integration or app

string | null
inspected_at
required

When it was recorded.

string | null
occurred_at
required

When it happened.

string | null
entered_later
required

True when recorded after the fact.

boolean
notes
required

Its notes.

string | null
fail_reason
required

Why it failed.

string | null
first_failed_at
required

Its first failing verdict.

string | null
check_list_version_id
required

The check-list version the step is pinned to; its items are the checks recordCheck takes

string | null format: uuid
checks
required

Its checks.

Array<object>

A check of an inspection step.

object
id
required

The check result.

string format: uuid
item_id
required

The check-list item it answers.

string format: uuid
status
required

Its status.

string
previously_failed
required

True when it failed before.

boolean
inspected_by
required

Who recorded it.

string | null
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
inspected_by_name
required

Their name, read when answering.

string | null
created_via
required
One of:

Integration or app when it was recorded through this API; shown as Integraatio · {name}

string
Allowed values: agent integration app
via_client_id
required

The integration’s id or the app’s client id when created_via is integration or app

string | null
inspected_at
required

When it was recorded.

string
occurred_at
required

When it happened.

string | null
entered_later
required

True when recorded after the fact.

boolean
note
required

Its note.

string | null
fail_reason
required

Why it failed.

string | null
changed_at
required

The row’s change time.

string
deleted
required
boolean
window
required

The bounds used.

object
modified_from
required

The lower bound used, normalised to UTC with microseconds; null without modified_from

string | null
modified_to
required

The upper bound the server used. The next window starts here.

string
skipped_projects
required

Projects whose rows were not read.

Array<object>

A project of the window whose rows were not read.

object
project_id
required

The project.

string format: uuid
reason
required

FEATURE_OFF: the owning organisation lacks the feature this resource needs. PUBLIC_API_DISABLED: the owning organisation has turned the API off

string
Allowed values: FEATURE_OFF LICENCE_REQUIRED PUBLIC_API_DISABLED
next_cursor
required

The cursor of the next page.

string | null

Example

{
"data": [
{
"steps": [
{
"created_via": "agent",
"checks": [
{
"created_via": "agent"
}
]
}
],
"deleted": false
}
],
"skipped_projects": [
{
"reason": "FEATURE_OFF"
}
]
}

VALIDATION_ERROR for invalid parameters; INVALID_CURSOR for a cursor that does not belong to them

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

Missing, malformed, expired or revoked token

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

INSUFFICIENT_SCOPE, or PUBLIC_API_DISABLED when an admin of the integration’s organisation, or on a per-project route of the project’s owning organisation, has turned the API off

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

WINDOW_BEFORE_RETENTION: the window starts before deletions are kept

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

RATE_LIMITED; wait for Retry-After seconds

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}