Low orbitCursor pagination, filter and sort across pagesAPI

A2: Paged Manifest

The cargo hold is full of presents waiting for the sleigh run, and the loadmaster needs the manifest totalled before the hatches seal. The manifest is far too long for one response, so the hold's computer hands it out a page at a time.

As everywhere in this orbit, send Authorization: Bearer YOUR_TOKEN with every request (401 without it). Errors are JSON {"error": "...", "detail": "..."}, and on 429 wait Retry-After seconds before retrying.

GET https://outcoded.orimovo.co.uk/api/v1/orbit/A2/cargo returns the first page. Each page holds up to 25 items, in manifest order, and a next cursor:

curl -H "Authorization: Bearer YOUR_TOKEN" https://outcoded.orimovo.co.uk/api/v1/orbit/A2/cargo

{"items": [
  {"id": 1, "sku": "TOY-4410", "kind": "toys",   "mass": 212, "fragile": false, "tag": "Q"},
  {"id": 2, "sku": "BAU-0193", "kind": "baubles", "mass": 37, "fragile": true,  "tag": "M"}
],
 "next": "bzI1.3f9a0c41d2b7e85a6c0d4f12"}

GET https://outcoded.orimovo.co.uk/api/v1/orbit/A2/cargo?cursor=<next> returns the page after it. Pass the next value back exactly as you received it (URL-encode it if your client doesn't). On the last page next is null.

Cursors are opaque and signed: don't build or edit them yourself. A cursor that wasn't issued to you, or that has been altered, gets 400 with "error": "bad_cursor".

What is the total mass of every item in the hold?