blocks

Search Blocks

Search over block content using PostgreSQL full-text search with trigram fuzzy matching fallback. Returns snippets only; fetch full text via /blocks/{block_id}/slice.

Features:

  • Full-text search with stemming (run/running/ran all match)
  • Trigram fuzzy matching for typo tolerance (threshold 0.3)
  • Results ranked by relevance
get/api/blocks/search

Request

  • Base URL: https://app.ctlsurf.com (the document declares no server; this is the origin it was published from)
  • URL: https://app.ctlsurf.com/api/blocks/search
  • Auth: HTTP bearer

Query parameters

qstring required
page_idstring uuid nullable
limitinteger
offsetinteger

Response

Successful Response

totalinteger required
limitinteger required
offsetinteger required
has_moreboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.