Browse API

Search tasks

Search visible tasks in one project with bounded pagination.

GET/api/v0/projects/<key>/tasks/search?q=<query>

Request

GET https://repopack.com/api/v0/projects/<key>/tasks/search?q=<query>&limit=20&cursor=0
Authorization: Bearer <token>

<key> is the permanent project key. Authenticate with a bearer token; the project must be active and the viewer must have task visibility. A guest with report-only access can see only their own created tasks, not all project work. A query is required, trimmed, and must contain at least two characters except a task-number query. Percent-encode query values; do not construct the URL by concatenating untrusted raw search terms.

Parameter Meaning
q Search task numbers, titles, descriptions and visible messages.
status Filter by a known task status; all includes all statuses.
base Filter by base branch.
owner, reviewer Filter by username (case-insensitive).
include_closed=true Include closed tasks when no specific status is selected; closed tasks are excluded by default.
limit Results per page, 1–100 (default 20).
cursor Numeric offset, 0–10000 (default 0).

Response

JSON includes query, results, and pagination: { limit, cursor, has_more, next_cursor }. Each result contains number, title, status, base_ref, owner, url, and match: { source, snippet, message_id }. source is number, title, description, or message; a snippet is compact and can be truncated, so do not treat it as the complete task context. url is the browser URL for a human reader, not an API endpoint. Follow next_cursor while has_more is true, preserving all filters. This is offset pagination over changing task state, not a stable snapshot.

Invalid query/filter/limit/cursor produces 400 with explanatory text; missing token produces 401; inactive project produces 404; an account without visible task scope receives 403. A search that returns no results is not proof that a related task does not exist. For full context and a submitted head, read the task.