Skip to main content
POST
/
api
/
chat
/
stream
cURL
curl --request POST \
  --url https://api.kazzle.app/api/chat/stream \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "threadId": "<string>",
  "content": "<string>",
  "toolResults": [
    {
      "toolUseId": "<string>",
      "content": "<string>",
      "isError": true,
      "isTimeout": true
    }
  ],
  "toolApproval": {
    "toolCallId": "<string>",
    "decision": "approve"
  },
  "spaceId": "<string>",
  "modelId": "<string>",
  "files": [
    {
      "path": "<string>",
      "mimeType": "<string>",
      "fileName": "<string>",
      "base64": "<string>"
    }
  ]
}
'

Authorizations

Authorization
string
header
required

Better Auth JWT token

Body

application/json
threadId
string
required
content
string
toolResults
object[]
toolApproval
object
spaceId
string
modelId
string
files
object[]