cURL
curl --request POST \ --url https://dash.superagentes.ai/api/agents/{id}/query \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "query": "<string>", "conversationId": "<string>", "visitorId": "<string>", "temperature": 123, "streaming": true, "modelName": "groq", "maxTokens": 123, "presencePenalty": 123, "frequencyPenalty": 123, "topP": 123, "filters": { "custom_ids": [ "<string>" ], "datasource_ids": [ "<string>" ] }, "systemPrompt": "<string>", "userPrompt": "<string>" }'
{ "answer": "<string>", "conversationId": "<string>", "visitorId": "<string>", "sources": [ {} ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID do agente
Sucesso
The response is of type object.
object