Skip to content

Menu

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
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_slotintegerrequired
  • to_slotintegerrequired
  • framesarray of objectrequired
    • slotintegerrequired
    • frameobjectrequired

      Field frame v1 (C1): a keyframe or a delta against the previous frame.

      • v1required
      • k"key" | "delta"required
      • tstringrequired
      • qarray of array of any

        key: every open light, sorted by id

      • carray of array of any

        delta: [index into the previous state's sorted ids, changed fields]

      • aarray of array of any

        delta: added lights

      • xarray of string

        delta: removed light ids

      • rarray of array of anyrequired
  • next_cursorstring | nullrequired

    The 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
  • errorobjectrequired
    • codeone of 14 valuesrequired
    • messagestringrequired
    • detailsany
    • request_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
  • errorobjectrequired
    • codeone of 14 valuesrequired
    • messagestringrequired
    • detailsany
    • request_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
  • errorobjectrequired
    • codeone of 14 valuesrequired
    • messagestringrequired
    • detailsany
    • request_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
  • errorobjectrequired
    • codeone of 14 valuesrequired
    • messagestringrequired
    • detailsany
    • request_idstringrequired

All operations

GET /v1/field/replay · AgentLand