Skip to Content
Open Retainer
Records

Query records

POST
/v1/objects/{object}/query

Filter, sort, and page one object by its workspace field names. The reserved object names event and events use the shared event columns and return an event page. Use POST /v1/events/query for the cross-type query schema. Requires the read scope.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A workspace API key.

Path Parameters

object*string

Object API name.

Request Body

application/json
  1. body
search?string

Keywords within this object only, matched by Postgres full-text search over its label and searchable fields. Every word must match, as a whole word or the start of one ("Dan" finds "Dana"); accents are ignored.

Length1 <= length <= 500
filter?
sort?array<>
Itemsitems <= 3
limit?integer
Range1 <= value <= 200
Default50
cursor?string
include?array<>
linked?

Event types only: events directly attached to this record, as a participant, about it, or through one of the event's own relation fields (link: field).

Response Body

Successful response.

application/json
  1. response
nextCursor*string|null
relationReferences?
records*array<>
Example Request
curl -X POST 'https://retainer.tamloot.cc/v1/objects/company/query' \  -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "filter": {    "name": "Acme"  },  "limit": 10}'
Example Response
{  "records": [],  "nextCursor": null}