Get a fast, source-backed answer
POST
Retrieves web results and generates a concise single-hop answer. This endpoint is not intended for deep research.
HTTPBearerheader
AuthorizationBearer <token>application/json- body
query*stringNatural-language web query.
Length
1 <= length <= 1000A fast narrative answer with its normalized sources.
application/json- response
query*stringanswer*stringFast narrative answer grounded in the provided sources.
sources*array<>Example Request
curl -X POST 'https://api.repromptai.com/v1/ask' \ -H 'Content-Type: application/json' \ -d '{ "query": "What is the difference between a web search API and a research agent?"}'Example Response
{ "query": "string", "answer": "string", "sources": [ { "title": "string", "url": "http://example.com", "snippet": "string", "position": 1, "date": "string" } ]}