Todos

Search todos

POST
https://api.searchsoftware.nl/v4/todos/search

Searches todos in the todos index. Requires todos:read.

All request fields are optional. Blank or omitted query defaults to match-all; omitted limit defaults to 10 and is clamped to 1-200; negative offset clamps to 0; omitted sort defaults to created_at desc. Filter clauses address bare todo metadata keys such as owner_type, assigned_to, list_id, completed_at, and is_priority_task. checklist is an array of task objects mirroring TodoResponse and is not addressable as a scalar; its leaf paths checklist.text, checklist.completed, and checklist.id are addressable. Do not prefix fields with meta..

Body

application/json
querystring

Search query. Blank or omitted values default to *.

Example
*
limitinteger<int32>

Maximum results. Defaults to 10 and is clamped to 1-200.

Example
10
offsetinteger<int32>

Zero-based offset. Defaults to 0 and negative values clamp to 0.

Example
0

Additional filter groups ANDed with the immutable server-owned type scope.

Show child attributes
opstringandornotrequired

How the clauses combine: and, or, or not (NOT of the AND of its clauses). Groups are ANDed together. An unknown op drops the whole group.

Example
and

One or more clauses. A group whose clauses are all dropped is ignored.

Show child attributes
fieldstringrequired

Attribute name as returned in the record's attributes (custom fields by slug). No meta. prefix. Clauses on type are ignored.

Example
status
opstringeqnot_eqgtgteltltebetweenexistsnot_existscontainscontains_exactrequired

Clause operator. Unknown operators are ignored (the clause is dropped), not rejected.

Example
eq
valueany

String, integer, or a two-element [low, high] array for between. Omit for exists / not_exists. Timestamps are full RFC 3339 values.

Example
normal

At most one entry; more than one is rejected. Empty or omitted defaults to created_at desc, or nearest first with near.

Show child attributes
fieldstringrequired

Attribute name to sort on.

Example
created_at
directionstringascdescrequired
Example
desc
objectsboolean

Include hydrated object summaries in top-level data.objects when true. Defaults to false. File summaries (file:<sqid>) carry a url: a download URL that works without authentication until it expires, between 12 and 13 hours after the response. Request the record again for a fresh one.

Example
false
Show child attributes
placestring

A city name, resolved from this workspace's own located addresses (the average of their coordinates). 422 PLACE_NOT_FOUND when none is located there; pass lat and lng instead. 503 PLACE_LOOKUP_FAILED when the lookup itself fails (retry, or pass lat and lng).

Example
Amsterdam
latnumber<float>

Latitude, with lng, in place of place.

Example
52.37
lngnumber<float>

Longitude, with lat.

Example
4.9
radius_kmnumber<float>required

1 to 500 kilometres.

Example
40
document_querystring

People, companies and jobs: a keyword that must appear in the record's document text (a person's parsed CV; the primary document of other records). At most 200 matching records are considered; data.document_matches_truncated says when there were more. Document text needs files:read, and through the MCP server the workspace's document text setting (403 DOCUMENT_TEXT_DISABLED).

Example
AutoCAD

Response

Todo search results

Response fields application/json
statusstringrequired
Example
ok
dataTodoSearchDatarequired
Show child attributes
countinteger<int32>required
Example
1
resultsArray<TodoSearchHit>required
Show child attributes
idstringrequired

Public todo SqID stored in the index metadata.

Example
encoded-todo-sqid
scorenumber<float>required
Example
0.75
attributesobjectrequired
Show child attributes
[key: string]any
400Bad RequestErrorResponse

Invalid request body

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_BODY",
    "status_code": 400,
    "message": "Invalid request body"
  }
}
401UnauthorizedErrorResponse

Invalid API key

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_API_KEY",
    "status_code": 401,
    "message": "Invalid API key"
  }
}
403ForbiddenErrorResponse

Insufficient scope

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "FORBIDDEN",
    "status_code": 403,
    "message": "Insufficient scope"
  }
}
422Unprocessable EntityErrorResponse

Validation error

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "VALIDATION_FAILED",
    "status_code": 422,
    "message": "Validation failed"
  }
}
500Internal Server ErrorErrorResponse

Internal server error

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INTERNAL_ERROR",
    "status_code": 500,
    "message": "Internal server error"
  }
}

Authorization

bearer_authhttp (bearer) in header

API key or OAuth access token in Authorization header

Scopes: todos:read

oauth2_authoauth2

OAuth authorization code flow with mandatory S256 PKCE.

Scopes: todos:read

apikey_authapiKey in query

API key in query string

Scopes: todos:read