List Database Records

List the records in one database, with a canonical app URL and every mounted field's current value.


POST /v1/list-database-records

List the records in one database, with a canonical app URL and every mounted field’s current value. Use list-database-fields first to know what each field id means. Paginate with the returned nextCursor as the next call’s cursor.

Request body

FieldTypeRequiredDescription
workspaceIdstringYesThe workspace ID
databaseIdstringYesThe database ID (from list-databases)
firstnumberNoPage size, max 200 (default 50)
cursorstringNoOpaque cursor from a previous call’s nextCursor
includeArchivedbooleanNoInclude records archived in this database (default false)
{
  "workspaceId": "string",
  "databaseId": "string",
  "first": 0,
  "cursor": "string",
  "includeArchived": true
}

Response

{
  "rows": [
    {
      "record": {
        "id": "string",
        "createdAt": "2024-01-01T00:00:00Z",
        "updatedAt": "2024-01-01T00:00:00Z"
      },
      "databaseId": "string",
      "membership": {
        "archived": true,
        "pinned": true,
        "editable": true
      },
      "fields": [
        {
          "id": "string",
          "name": "string",
          "type": "CHECKBOX",
          "value": {},
          "editable": true
        }
      ],
      "url": "string"
    }
  ],
  "nextCursor": "string",
  "hasMore": true
}

Example

curl -X POST https://rest.blue.app/v1/list-database-records \
  -H "Authorization: Bearer $BLUE_TOKEN" \
  -H "blue-org-id: $BLUE_ORG_ID" \
  -H "Content-Type: application/json" \
  -d '{"workspaceId":"string","databaseId":"string","first":0,"cursor":"string","includeArchived":true}'