Skip to main content
POST
/
api
/
v1
/
agents
/
query
Api Query
curl --request POST \
  --url https://agent.kryptonfund.com/api/v1/agents/query \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "user_id": "<string>",
  "username": "<string>",
  "session_id": "<string>",
  "top_n": 25,
  "include_search": true,
  "content": [
    {}
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Body

application/json
query
string | null

Natural language query

user_id
string | null

User ID for session tracking

username
string | null

Username for personalization

session_id
string | null

Session ID for session tracking

top_n
integer | null
Required range: 1 <= x <= 50
content
Content · object[] | null

Interrupt responses as content blocks

Response

Successful Response