search
Create Search For Tool
Changed onRun a search against the search tool named in the path.
Identical to POST /api/v1/search except that the path names the tool, which is the form LiteLLM clients use. Any search_tool_name in the body is ignored.
Authentication modes:
- Master key: the user field is required and may name any existing user.
- API key: usage and spend bind to the key's own user. A user field naming a different user is rejected with 403 (or ignored, when the key's own reject_user_mismatch is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user.
- Service key: a user field names one of the key owner's end users, created on first use on the budget Otari-End-User-Budget names (or the key's default), and is billed and rate limited as that end user, as on chat completions.
post/api/v1/search/{search_tool_name}
Request
- The document declares no server URL.
- Auth: one of:
- API key in header Otari-Key
- API key in header x-api-key
Path parameters
search_tool_namestring required
Configured search tool to run against
Request body
Example request
{
"max_results": 5,
"query": "otari llm gateway"
}Response
Successful Response
Changes
- info
added the optional property
to the response with the status
- info
- info
api operation id
create_search_for_tool_api_v1_search__search_tool_name__postremoved and replaced withsearch-create_search_for_tool
- info