Generate Section Stream
POST/api/websites/:site_id/builder/generate-section
Stream a single "Generate with AI" SECTION turn as Server-Sent Events.
Reuses the design agent in a read-only, stateless mode (see
WebsiteBuilderService.stream_section): the agent designs ONE standalone
section and the terminal section_html event carries its HTML for the
editor to insert after the hovered section. No conversation is persisted and
no page file is written, so the reattach machinery the chat endpoint uses is
intentionally not wired here.
Request
Responses
- 200
- 422
Successful Response
Validation Error