Skip to content
Suomi

Model versions changed in a window

GET
/v1/model-versions
Code sample: Shell / cURL
curl --request GET \
--url 'https://api.whatsbuilt.fi/v1/model-versions?limit=200&status=pending' \
--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. Needs models:read. One row per uploaded IFC file: every version of a model shares model_id, and the highest complete version is the model’s current one. A version changes as its ingest moves from pending through processing to complete or failed; diff compares it with the previous version. A deleted model comes as a deletion of each of its versions. status and model_id filter live rows only.

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: pending processing complete failed
model_id
string format: uuid

One page

Media typeapplication/json

One page of the list.

object
data
required

The rows.

Array

An item of GET /v1/model-versions.

One of:

A live version.

object
id
required

The version’s id; the upload that made it

string format: uuid
project_id
required

The project.

string format: uuid
model_id
required

Every version of one model shares it; the first upload’s id

string format: uuid
filename
required

The file’s name.

string
status
required

pending until ingestModelVersion, processing, then complete or failed. New statuses may come.

string
Allowed values: pending processing complete failed
version
required

The version number once complete; the highest complete version is the current model

integer | null format: int64
element_count
required

Elements in the file.

integer | null format: int64
error
required

Why the ingest failed.

string | null
diff
required
One of:

Elements compared with the previous version: kept, added, removed, and the removed ones with labels, inspections or other data. New counts may come.

object
kept

Kept.

integer format: int64
added

Added.

integer format: int64
removed

Removed.

integer format: int64
removed_with_labels

Removed with labels.

integer format: int64
removed_with_inspections

Removed with inspections.

integer format: int64
removed_with_data

Removed with other data.

integer format: int64
skipped_other_model

Left out as another model’s.

integer format: int64
ifc_schema
required

The IFC schema.

string | null
ifc_file_description
required

The IFC file description.

string | null
ifc_model_kind
required

The kind of model.

string | null
created_at
required

When it was uploaded.

string
completed_at
required

When its ingest finished.

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": [
{
"status": "pending",
"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"
}