Record one event of a kind on each listed element
curl --request POST \ --url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/element-events \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "kind": "delivered", "global_ids": [ "example" ], "occurred_at": "2026-04-15T12:00:00Z", "load_ref": "example" }'Elements that already have a standing event of the kind, or that do not exist, come back in refused with their code. A repeat with the same Idempotency-Key and body returns the events the first call recorded and records nothing again. The body is the kind, the set of GlobalIds, load_ref and occurred_at; the same key with another body answers 422 IDEMPOTENCY_KEY_REUSED. A key binds a body only once its call has recorded an event.
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 recordElementEvents.
object
The kind of an element event.
When it happened; default now. An earlier time is recorded as entered later.
Delivery or load reference; delivered and received_on_site only
Responses
Section titled “Responses”Recorded and refused elements
Recorded and refused elements.
object
The kind of an element event.
An element event as /v1 documents it: created_via is any text.
object
The kind of an element event.
An element that took no event.
object
Why an element took no event.
An element event as /v1 documents it: created_via is any text.
object
The kind of an element event.
Example
{ "kind": "delivered", "recorded": [ { "kind": "delivered" } ], "refused": [ { "code": "ALREADY_RECORDED", "event": { "kind": "delivered" } } ]}Invalid body, parameters or Idempotency-Key
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, 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
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, event or element
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"}