curl --request POST \
--url https://api.mintlify.com/discovery/v1/search/{domain} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"pageSize": 10,
"scoreThreshold": 0.5,
"filter": {
"version": "<string>",
"language": "<string>"
}
}
'[
{
"content": "<string>",
"path": "<string>",
"metadata": {}
}
]Search your documentation programmatically and retrieve relevant pages matching the query.
curl --request POST \
--url https://api.mintlify.com/discovery/v1/search/{domain} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"pageSize": 10,
"scoreThreshold": 0.5,
"filter": {
"version": "<string>",
"language": "<string>"
}
}
'[
{
"content": "<string>",
"path": "<string>",
"metadata": {}
}
]The Authorization header expects a Bearer token. Use an assistant API key (prefixed with mint_dsc_). This is a public key safe for use in client-side code. Generate one on the API keys page in your dashboard.
The domain identifier from your domain.mintlify.app URL. Can be found at the end of your dashboard URL. For example, dashboard.mintlify.com/organization/domain has a domain identifier of domain.
The search query to execute against your documentation content.
Number of search results to return. Must be between 1 and 50. Defaults to 10 if not specified.
1 <= x <= 50Minimum relevance score for results. Results below this threshold are excluded. Must be between 0 and 1.
0 <= x <= 1Optional filtering parameters to narrow search results.
Show child attributes
Was this page helpful?