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
| Field | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace ID or slug to search within |
query | string | Yes | Search text to match against record titles |
done | boolean | No | Filter by completion status |
archived | boolean | No | Archive scope: omit/false searches only active (non-archived) records; true searches ONLY archived records (not active + archived combined — there is no “both” option). |
skip | number | No | Offset for pagination (default: 0) |
limit | number | No | Maximum results, max 100 (default: 20) |
indexed
| Field | Type | Required | Description |
|---|---|---|---|
action | indexed | Yes | |
input | SearchRecordsInput | Yes |
generic
| Field | Type | Required | Description |
|---|---|---|---|
action | generic | Yes | |
input | SearchGenericRecordsInput | Yes |
{
"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}'