Search
Global search across all entities in the platform. Returns tasks, projects, teams, and organizations matching the query.
API Endpoint
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/search | Yes | Global search (?q=) |
The search endpoint accepts a q query parameter and returns results grouped by entity type:
json
{
"tasks": [{ "id": "...", "title": "...", "projectId": "..." }],
"projects": [{ "id": "...", "name": "..." }],
"teams": [{ "id": "...", "name": "..." }],
"organizations": [{ "id": "...", "name": "..." }]
}Frontend
The search UI is available in the header as a global search input. It shows results in a dropdown grouped by entity type with quick links.
typescript
const { results, query, search } = useSearch()
// search(query) returns grouped results