Ask with one request
Send a query with a language and search mode to get a clear, structured answer.
Send a question to the search API and receive an AI-generated answer with citations in a structured JSON response.
curl -X POST "$API_BASE_URL/search" \
-H "Content-Type: application/json" \
-d '{
"query": "How do solar panels work?",
"language": "en",
"mode": "search"
}'Designed for integration
Use the same search capabilities in your own workflows, with source links and streaming support.
Send a query with a language and search mode to get a clear, structured answer.
Search responses include citation details such as the source title, URL, excerpt, and source type.
Use POST /search/stream to receive newline-delimited JSON events as the answer is generated.
Illustrative response; the selected model and citation values depend on your request.
{
"query": "How do solar panels work?",
"answer": "Solar panels convert sunlight into electricity...",
"model": "selected-by-your-plan",
"mode": "search",
"citations": [
{
"id": 1,
"title": "Solar energy basics",
"url": "https://example.com/solar",
"snippet": "Photovoltaic cells convert light into...",
"engine": "web"
}
]
}Send a JSON body to POST /search. Query is required; the other fields are optional.
The search endpoint accepts requests without a token under guest-plan limits. Include a valid app account access token as a Bearer token to use the signed-in account's plan and quota. Never expose account tokens in public client code.
Search and streaming requests are rate-limited to 20 per minute. Search usage also counts against the applicable guest or account plan quota.
The API host depends on your Maystro AI deployment. Set API_BASE_URL to the backend origin provided by your deployment.
Explore Maystro AI in the web app, then connect your workflow to the API.