Skip to content
LydieDevelopers
Menu

Query a database

View as Markdown
POST/v1/databases/{databaseId}/query

Returns one window of a view's rows (filtered, sorted, grouped), with the total and group counts. Pass viewId for a saved view, or view for an ad-hoc one (both: view overrides). uniqueId values are numbers (shown as prefix-number, e.g. LYD-12); filters take 12 or "LYD-12".

docs:readRead-only
Request
curl -X POST "https://api.lydie.co/v1/databases/01JCQ3V5MZ8G4ZK2X7T9R6N1PB/query" \
  -H "Authorization: Bearer $LYDIE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Path parameters

Body

Response

200
{
  "total": 0,
  "offset": 0,
  "rows": [
    {
      "id": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
      "title": "Meeting notes",
      "sortKey": "a0",
      "properties": {},
      "createdAt": "2026-11-12T09:30:00.000Z",
      "updatedAt": "2026-11-12T09:30:00.000Z",
      "createdBy": null,
      "updatedBy": null,
      "group": null,
      "subGroup": null,
      "computed": {}
    }
  ],
  "groups": [
    {
      "key": null,
      "subKey": null,
      "count": 0,
      "start": 0
    }
  ]
}

Errors use one envelope for every endpoint. See Errors and versions.