Query the cross-source change archive
list_changesGet created, updated, or deleted changes across polled Norwegian sources for incremental sync, with filters for source, entity, and time range.
Instructions
Read Apier's cross-source change archive — detected created / updated / deleted events across the upstreams Apier polls (Brønnøysund ingestion plus the Altinn-schema, DigDir-policy, and Norges Bank pollers) so agents drive incremental sync instead of re-fetching whole entities. observation_kind separates cache warm-up rows from genuine transitions. Filter by { source, entity_type, entity_id, change_type } and a { from }–{ to } detected_at range. Queries WITHOUT entity_id withhold personal-field rows by design (personal_fields_withheld: true); the org-scoped form returns everything. Keyset-paginated newest-first: pass { limit } (1–500, default 50) and carry next_cursor back verbatim — cursors are HMAC-signed; an edited one is rejected as CURSOR_INVALID - start over without a cursor. Failure modes: SCOPE_INSUFFICIENT (needs read:changes), VALIDATION_FAILED, CURSOR_INVALID. No sandbox mirror — a sandbox bearer gets SANDBOX_TOOL_UNAVAILABLE. Docs: https://www.apier.no/docs/guides/webhooks
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Upper bound on detected_at; must be ≥ from. | |
| from | No | Lower bound on detected_at (ISO 8601 with timezone offset). | |
| limit | No | Page size 1–500 (route default 50). | |
| cursor | No | Opaque signed cursor from a previous `next_cursor` — pass back verbatim. | |
| source | No | Filter to one upstream source (e.g. brreg / altinn / digdir / norges_bank). Omit for all sources. | |
| entity_id | No | Filter to one entity's change stream (e.g. a 9-digit org number). | |
| change_type | No | Filter to created / updated / deleted events. | |
| entity_type | No | Filter to one entity type (e.g. annual_accounts, company). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | ||
| result | Yes | The change page: `data[]` rows (source, entity_type, entity_id, change_type, detected_at, source_snapshot_id, observation_kind), a `pagination` block, and `personal_fields_withheld`. Ordered newest-first. | |
| metadata | Yes | ||
| justification | Yes |