CollectalesDevelopers

Treat cursors as opaque#

List responses contain data plus page.hasMore and page.nextCursor. Send nextCursor unchanged as the cursor parameter. Preserve the original filters across pages. Do not decode or manufacture cursor values.

# First page, then pass page.nextCursor back unchanged
curl "$COLLECTALES_BASE_URL/v1/games/one-piece/cards?limit=100" \
  --header "authorization: Bearer $COLLECTALES_ACCESS_TOKEN"
curl "$COLLECTALES_BASE_URL/v1/games/one-piece/cards?limit=100&cursor=$NEXT_CURSOR" \
  --header "authorization: Bearer $COLLECTALES_ACCESS_TOKEN"

Commit a complete local snapshot#

Stage incoming pages in a temporary dataset. Publish the new local snapshot only after every page succeeds. On failure, retain the previous complete snapshot and retry later.

Handle removals explicitly#

updated_after filters currently visible rows. Deleted, archived, or rights-withdrawn rows can disappear without a tombstone. A periodic full reconciliation is required. Deletion-safe incremental synchronization is not available.

Guides and real API endpoints