POST
/
api
/
v1
/
web_search
Web Search Endpoint
curl --request POST \
  --url https://services.staging.app.dados.rio/eai-agent-surkai/api/v1/web_search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "k": 6,
  "lang": "pt-BR",
  "freshness_days": 2
}'
{
  "summary": "<string>",
  "sources": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Schema da requisição para /web_search.

Response

200
application/json

Successful Response

Schema da resposta retornada pela rota /web_search.