Skip to content
Changes

The organisation's changes, oldest first, for polling

Scope: readSee also:Authentication ·Errors ·Pagination ·Rate limits
GET
/changes

Any member, or an API key with the read scope (ADR-026). The organisation's changes in the order they became visible, oldest first, as {id, occurred_at, entity_type, entity_id, action}: no values, no actors, no personal data; read the entity for its current state. Keep next_cursor of the last page and ask again later: a change appears only once every transaction that started before it has finished, so a cursor never skips a change that commits late. next_cursor is set whenever the page has items, also on the last page; an empty page keeps the cursor you sent (next_cursor null). Without cursor the feed starts at the beginning of the organisation's history.

Authorization

apiKey
headerAuthorizationBearer <token>

Organisation API key sent as Authorization: Bearer bp_live_… (ADR-017). Accepted only by the operations that list this scheme, with the scope in their x-api-key-scope.

Query Parameters

limit?integer

Maximum number of items to return.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's next_cursor.

Length1 <= length <= 512
types?array<>

Only these actions (all when omitted).

Itemsitems <= 9

Response Body

One page of changes.

application/json
  1. response
items*array<>
next_cursor*|

Cursor for the next page, or null when this is the last page.

Example Request
curl -X GET 'https://example.com/api/v1/changes'
Example Response
{  "items": [    {      "action": "battery.created",      "entity_id": "8161163a-f227-466f-bc01-090a01e80165",      "entity_type": "battery",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "occurred_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}