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-warningvector_attribute_droppedQuery, fetch
traceparentW3C trace contextQuery, multi-query

The watermark header can be absent before a stable observation exists.

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