Search
Search collections and links
Full-text search across the authenticated user's collections and links.
Endpoint: GET /api/v1/search
Headers:
Authorization: Bearer <token>
Query parameters:
term(required): Search term (at least 1 character, trimmed)type(optional): Restrict results tolink,collection, orboth(defaultboth)
Response:
json
[
{
"id": 1,
"type": "link",
"name": "Example Link",
"url": "https://example.com",
"icon": null,
"matchedPart": "Example",
"rank": 0.6079
},
{
"id": 2,
"type": "collection",
"name": "Examples",
"url": null,
"icon": "📚",
"matchedPart": "Example",
"rank": 0.3042
}
]Fields:
type:linkorcollection— tells which entity theidrefers tourl: the link's URL; alwaysnullfor collectionsicon: the collection's emoji; alwaysnullfor linksmatchedPart: the fragment of the entity that matched, for highlightingrank: relevance score, higher is better