Skip to content
Source
Sign inSign up
TanStack/schemas

Perplexity: add POST /search #660

Closedtombeckenham opened this issue 0 comments
tombeckenhamcommented

Problem

GET /v1/openapi/perplexity has /v1/agent, /v1/sonar, /v1/embeddings and /v1/contextualizedembeddings. It has no Search API. POST https://api.perplexity.ai/search is live: without a key it returns 401, not 404.

Ask

Add POST /search with its request body (query as a string or string array, max_results, max_tokens_per_page, country, search_domain_filter, search_recency_filter, and the date filters) and its response (results[] with title, url, snippet, date, last_updated, plus id).

Acceptance

  • GET /v1/openapi/perplexity has paths["/search"].post with typed request and response schemas.

TanStack AI generates its provider clients from these documents (TanStack/ai#2104, TanStack/ai#2105). @tanstack/ai-perplexity only calls /search, so it is left out of the generator until this lands.

  1. tanstack-source added labelsfeature

  2. tombeckenham linked this to #664

  3. tombeckenham closed this

Sign in to join this conversation.