Skip to main content
POST

Authorizations

Authorization
string
header
required

Enter your MeshAPI key (rsk_...) or, for the admin-keys endpoints, a dashboard session token — sent as Authorization: Bearer <token>.

Headers

X-Mesh-Version
enum<string>
default:2026-08

Dated version of the API contract to pin this request to. Omit it and the request is served under 2026-08 — the oldest supported version, so an existing integration is never moved by a release. A malformed or unsupported value is rejected with 400 invalid_api_version rather than falling back silently. The version actually served is echoed as X-Mesh-Version on every response, including errors.

Available options:
2026-08,
2026-09,
2026-11

Body

application/json
query
string
required

The search query.

Required string length: 1 - 2000
model
string | null

Optional, and has no effect on results or price. The only accepted value is perplexity/sonar; any other value is rejected with a 422. Use provider to choose an engine.

Example:

"perplexity/sonar"

provider
enum<string> | null

Pin a specific engine. Omit to use native-first with automatic fallback, which is recommended. Pinning disables failover: if the pinned engine fails, the error is returned.

Available options:
native,
tavily,
tinyfish
Example:

"tinyfish"

max_results
integer
default:5

Maximum results to return.

Required range: 1 <= x <= 20
search_depth
enum<string>
default:basic

Tavily search depth; ignored by the native and TinyFish engines.

Available options:
basic,
advanced
include_domains
string[] | null

Restrict results to these domains.

exclude_domains
string[] | null

Drop results from these domains.

include_answer
boolean
default:false

Ask the engine for a synthesized answer alongside results. Honoured by Tavily only; the native and TinyFish engines have no equivalent and return no answer.

include_page_content
boolean
default:false

Also return each result's extracted page text in page_content, so one call replaces search-then-fetch. Honoured by TinyFish only; the native and Tavily engines have no equivalent and leave page_content unset — that is not an error. Each returned result that carries page_content adds a per-page charge to the search ($0.001 at the default rate). Off by default because it is slow and large: the upstream fetches every result it found, not just the max_results you asked for, so expect several seconds and tens of kilobytes per result. Ask for it only when you will read the text.

tags
Tags · object | null

Your own labels for this request, echoed back on the usage row and available as a filter and a group-by dimension in the usage API. String keys to string values. Never put personal or sensitive data here — tags are stored with the usage record and are not redacted.

Example:
safety_identifier
string | null

A stable, anonymised identifier for the end user making this request, recorded on the usage row and available as a filter and a group-by dimension in the usage API. Supersedes the deprecated user field. Use an opaque id, not an email address or a name.

Maximum string length: 256

Response

Successful Response

query
string
required
provider
enum<string>
required
Available options:
native,
tavily,
tinyfish
answer
string | null
results
WebSearchResultItem · object[]
request_id
string
default:""