StatsHub Docs
APIAPI v2V2 endpoint referenceAssistant

/assistant/chat

Streams the StatsHub assistant's UI-message protocol.

POST
/assistant/chat

Streams the StatsHub assistant's UI-message protocol.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/assistant/chat" \  -H "Content-Type: application/json" \  -d '{    "messages": [      {        "id": "string",        "parts": [          {            "input": null,            "output": null,            "result": null,            "state": "string",            "text": "string",            "toolCallId": "string",            "type": "string"          }        ],        "role": "string"      }    ]  }'
"string"