Jamdesk Documentation logo

Search Endpoint

POSThttps://{project}.jamdesk.app/_api/search

Performs semantic vector search across your project documentation and returns matching pages ranked by relevance score.

Queries are embedded into the same vector space used to index your docs, so the search understands intent — not just keywords. Ask a full natural-language question for best results.

Response shape: an array of results (title, section, slug, content snippet, URL, score), along with the original query, total count, and search duration. The snippet field is capped at 500 characters and is directly usable as LLM context.

Typical latency: 50-200ms for queries against projects under 10k pages. Latency scales sub-linearly with index size.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

querystringrequired

Natural language search query.

Length: <= 500
limitinteger

Maximum number of results to return.

Required range: x >= 1, x <= 20
Default: 5

Response

application/json

Search results

resultsarray<object>
results.titlestring

Page title.

results.sectionstring

Section heading within the page (if applicable).

results.slugstring

URL path to the page.

results.contentstring

Content snippet (max 500 chars).

results.urlstring<uri>

Full URL to the page.

results.scorenumber<float>

Relevance score (cosine similarity, 0.0–1.0). Higher is better.

Required range: x >= 0, x <= 1
querystring

The query that was searched.

totalinteger

Number of results returned.

durationMsinteger

Server-side search execution time in milliseconds (excludes network round-trip).