POST
/
agents
/
{id}
/
query
curl --request POST \
  --url https://app.docs.bynesoft.com/api/ask/agents/{id}/query \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "conversation": {
    "id": "<string>",
    "priorMessagesCount": 2
  }
}'
{
  "queryId": "<string>",
  "conversationId": "<string>",
  "response": {
    "answer": "<string>",
    "reference": [
      {
        "exeLayer": "<string>",
        "source": "<string>",
        "title": "<string>"
      }
    ]
  }
}

Authorizations

X-API-Key
string
header
required

Path Parameters

id
string
required

Query Parameters

q
string
required
withReference
boolean
default:false
stream
boolean
default:false

Streaming with response blocking Output GuardRails is forbidden

Body

application/json
conversation
object | null

Response

200
application/json
Successful Response
queryId
string
required
conversationId
string
required
response
object
required