Search Records

Search for records by title within a workspace (does not match description/comment content).


POST /v1/search-records

Search for records by title within a workspace (does not match description/comment content). This is the right tool to find records in large workspaces — it queries the backend directly rather than filtering a loaded page, so it finds matches list-records would never page to. Returns a summary view including due dates; use get-record for full detail. Check pageInfo.hasNextPage and pass skip to page through results — a search can silently return only the first page otherwise. Search record content with ranked snippets. Use indexed for record search or generic for database records with table labels. Omit action for the existing workspace title search.

Request body

Original operation

FieldTypeRequiredDescription
workspaceIdstringYesWorkspace ID or slug to search within
querystringYesSearch text to match against record titles
donebooleanNoFilter by completion status
archivedbooleanNoArchive scope: omit/false searches only active (non-archived) records; true searches ONLY archived records (not active + archived combined — there is no “both” option).
skipnumberNoOffset for pagination (default: 0)
limitnumberNoMaximum results, max 100 (default: 20)

indexed

FieldTypeRequiredDescription
actionindexedYes
inputSearchRecordsInputYes

generic

FieldTypeRequiredDescription
actiongenericYes
inputSearchGenericRecordsInputYes
{
  "workspaceId": "string",
  "query": "string",
  "done": true,
  "archived": true,
  "skip": 0,
  "limit": 0
}

Response

{
  "items": [
    {
      "id": "string",
      "uid": "string",
      "title": "string",
      "done": true,
      "archived": true,
      "duedAt": "2024-01-01T00:00:00Z",
      "dueDateGranularity": "ALL_DAY",
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z",
      "list": {
        "id": "string",
        "title": "string"
      },
      "users": [
        {
          "id": "string",
          "fullName": "string"
        }
      ],
      "tags": [
        {
          "id": "string",
          "title": "string",
          "color": "string"
        }
      ]
    }
  ],
  "pageInfo": {
    "hasNextPage": true,
    "totalItems": 0
  }
}

Example

curl -X POST https://rest.blue.app/v1/search-records \
  -H "Authorization: Bearer $BLUE_TOKEN" \
  -H "blue-org-id: $BLUE_ORG_ID" \
  -H "Content-Type: application/json" \
  -d '{"workspaceId":"string","query":"string","done":true,"archived":true,"skip":0,"limit":0}'