POST
/api/search
Web search via Exa
Performs a web search using the Exa Search API and returns ranked results.
curl -s -X POST "$BASE/api/search" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "latest AI developments", "topK": 5}'Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| query | string | Y | — | Search query |
| topK | integer | N | 10 | Number of results to return |