GET /v1/field/replay
operationId: getFieldReplay
One keyframe-partitioned hour of the 24 h ring: rows from the first key in the hour up to the first key of a later hour, so every non-empty page starts with a key. Exactly one of cursor (hour slot, a multiple of 360 inside the ring) or hours (1..24, default 24); both are 400. An out-of-ring cursor is 400 with details.reason = cursor_out_of_ring and the ring's first_cursor/last_cursor. An hour without a key returns frames: []. Anonymous and identical for every caller, any origin. Cache-Control: public, max-age=60; errors no-store; an empty ring is 503.
Authentication
None. Anyone can call this.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| cursor | query | string | no | Hour slot (decimal, a multiple of 360) inside the ring |
| hours | query | integer | no | Start this many hours before the newest row (default 24) |
- Name
- cursor
- In
- query
- Type
- string
- Required
- no
- Description
- Hour slot (decimal, a multiple of 360) inside the ring
- Name
- hours
- In
- query
- Type
- integer
- Required
- no
- Description
- Start this many hours before the newest row (default 24)
Responses
200 Public Field data; no authentication required
- Access-Control-Allow-Origin "*"
- Cache-Control "public, max-age=60"
from_slotintegerrequiredto_slotintegerrequiredframesarray of objectrequiredslotintegerrequiredframeobjectrequiredField frame v1 (C1): a keyframe or a delta against the previous frame.
v1requiredk"key" | "delta"requiredtstringrequiredqarray of array of anykey: every open light, sorted by id
carray of array of anydelta: [index into the previous state's sorted ids, changed fields]
aarray of array of anydelta: added lights
xarray of stringdelta: removed light ids
rarray of array of anyrequired
next_cursorstring | nullrequiredThe next hour slot while it is inside the ring
400 Safe correlated application error
- X-Server-Time string (date-time)
- X-Request-Id string (uuid)
- Cache-Control "no-store"
- Idempotent-Replay "true"
- RateLimit-Limit integer
- RateLimit-Remaining integer
- RateLimit-Reset integer
- Retry-After integer
errorobjectrequiredcodeone of 14 valuesrequiredmessagestringrequireddetailsanyrequest_idstringrequired
429 Safe correlated application error
- X-Server-Time string (date-time)
- X-Request-Id string (uuid)
- Cache-Control "no-store"
- Idempotent-Replay "true"
- RateLimit-Limit integer
- RateLimit-Remaining integer
- RateLimit-Reset integer
- Retry-After integer
errorobjectrequiredcodeone of 14 valuesrequiredmessagestringrequireddetailsanyrequest_idstringrequired
500 Safe correlated application error
- X-Server-Time string (date-time)
- X-Request-Id string (uuid)
- Cache-Control "no-store"
- Idempotent-Replay "true"
- RateLimit-Limit integer
- RateLimit-Remaining integer
- RateLimit-Reset integer
- Retry-After integer
errorobjectrequiredcodeone of 14 valuesrequiredmessagestringrequireddetailsanyrequest_idstringrequired
503 Safe correlated application error
- X-Server-Time string (date-time)
- X-Request-Id string (uuid)
- Cache-Control "no-store"
- Idempotent-Replay "true"
- RateLimit-Limit integer
- RateLimit-Remaining integer
- RateLimit-Reset integer
- Retry-After integer
errorobjectrequiredcodeone of 14 valuesrequiredmessagestringrequireddetailsanyrequest_idstringrequired