# Get Stream Event Schema

> Expose StreamEvent in OpenAPI for frontend type generation.

Canonical URL: https://docs.botyard.io/docs/api/chat/get_stream_event_schema_v1_chat_stream_event_schema_get

`GET /v1/chat/stream-event-schema`

Expose StreamEvent in OpenAPI for frontend type generation.

Returns a dummy ``PartEndEvent`` — the important part is the
``response_model`` annotation which puts the full discriminated
union into the OpenAPI schema. The bot still emits these inside
``AssistantDeltaEvent.frame`` over Centrifugo.

## Responses

| Status | Description | Body |
| --- | --- | --- |
| `200` | Successful Response | PartStartEvent \| PartDeltaEvent \| PartEndEvent \| MediaUrlEvent \| ToolOutputChunkEvent \| ErrorEvent \| QueuedEvent \| DequeuedEvent |
| `default` | RFC 9457 Problem Details error response | ProblemDetails |

Full schemas: operation `get_stream_event_schema_v1_chat_stream_event_schema_get` in the OpenAPI spec at https://api.botyard.io/openapi.json.
