See it in action on the hev-shop demo store.

API

Response Headers

Layer keeps Turbopuffer-compatible read bodies in the upstream shape and returns Layer-specific metadata in response headers.

HeaderValuesReturned by
x-layer-stable-as-ofEpoch millisecondsQuery, multi-query, scan counts
x-layer-next-cursorOpaque cursor tokenSingle-query pagination
x-layer-cachehit, miss, miss-on-errorFetch
x-layer-warningvector_attribute_droppedQuery, fetch
traceparentW3C trace contextQuery, multi-query

SDKs expose these headers as fields where that is more convenient. For example, query_namespace returns upstream rows and also sets stable_as_of / next_cursor on the parsed response object when the headers are present.

esc