Query records: filter AST + sorts + q + keyset cursor (the workhorse)
POST
/api/v1/workspaces/{ws}/databases/{db}/records/query
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”db
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
filter
sorts
Array<object>
object
field
required
string
direction
string
nulls
string
q
string
limit
integer
cursor
string
Responses
Section titled “Responses”Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
number
required
integer
identifier
required
string
title
required
string
values
required
object
key
additional properties
position
required
string
created_by
required
string
created_at
required
ISO timestamp
string
updated_at
required
ISO timestamp
string
computed_values
required
Computed values keyed by field id, with per-field siblings for an AI field: <field_id> is the last good value; <field_id>:computed_at the ISO timestamp it was computed; <field_id>:error the last failure, if any (the last good value is kept); <field_id>:pending_at the ISO timestamp a recompute was QUEUED, present only while one is in flight, and dropped once older than five minutes so a crashed worker cannot leave a cell “computing” for ever. Read the marker with aiPendingAt() from @storyos/schemas rather than building the key by hand.
object
key
additional properties
next_cursor
required
string
has_more
required
boolean
Examplegenerated
{ "data": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "number": 1, "identifier": "example", "title": "example", "values": { "additionalProperty": "example" }, "position": "example", "created_by": "example", "created_at": "example", "updated_at": "example", "computed_values": { "additionalProperty": "example" } } ], "next_cursor": "example", "has_more": true}