Full-text search and facet operations.
Search (1.0.0)
Query your project's documentation and API reference content from external tools, scripts, or integrations (for example, MCP servers or custom search UIs).
Path prefix: If your project is deployed with a path prefix (for example, https://docs.example.com/docs/), prepend that prefix to the API paths (for example, /docs/_search).
For path prefix configuration, see custom domain configuration.
This API uses the same authentication as the project. Public projects (when access.requiresLogin is not set or is false), don't require authentication when you call the API. If the project is protected, (access.requiresLogin: true or has RBAC configuration), you must send the same cookie-based session that the browser uses after users logs in.
The API does not support API keys or bearer tokens; authentication is session (cookie) only. For unauthenticated requests to protected projects, both endpoints return empty results instead of errors.
To learn more about access and authentication options, see Access control.
Locale code for the content to search (for example, en, default_locale). Must match a locale configured in your project. Locales are set in redocly.yaml under the l10n option.
- Mock serverhttps://redocly.com/_mock/docs/realm/customization/search-api/openapi/_search
- Project serverhttps://redocly.com/_search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://redocly.com/_mock/docs/realm/customization/search-api/openapi/_search \
-H 'Content-Type: application/json' \
-d '{
"query": "getting started",
"filter": [],
"locale": "default_locale"
}'{ "facets": { "redocly_category": [ … ], "redocly_product": [], "redocly_version": [], "redocly_teams": [], "httpMethod": [], "httpPath": [], "apiTitle": [], "apiVersion": [] }, "documents": { "Documentation": [ … ] } }
If set, returns only the facet for this field (with values and counts). If omitted, returns all configured facets.
- Mock serverhttps://redocly.com/_mock/docs/realm/customization/search-api/openapi/_search-facets
- Project serverhttps://redocly.com/_search-facets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://redocly.com/_mock/docs/realm/customization/search-api/openapi/_search-facets \
-H 'Content-Type: application/json' \
-d '{
"locale": "en"
}'[ { "name": "string", "field": "string", "type": "string", "values": [ … ] } ]