Atlas
Demo

Chat in demo mode (streaming)

Mirrors the main chat endpoint with demo-specific limits. Requires a valid demo token from /demo/start. Streams the response as Server-Sent Events using the Vercel AI SDK UI message stream protocol. Demo conversations are persisted when an internal database is available.

POST
/api/v1/demo/chat

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

text/event-stream

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:3001/api/v1/demo/chat" \  -H "Content-Type: application/json" \  -d '{    "messages": [      {        "role": "user",        "parts": [          {            "type": "string",            "property1": null,            "property2": null          }        ],        "id": "string"      }    ]  }'
"string"
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}