Skip to main content
POST
/
chat
/
start
Allocate a resumable stream for a chat edit
curl --request POST \
  --url http://localhost:4200/chat/start \
  --header 'Content-Type: application/json' \
  --data '
{
  "session": "<string>",
  "siteId": "<string>",
  "componentsManifest": {},
  "siteCapabilities": {
    "allowStructuralEdits": true,
    "checkedAt": "<string>",
    "reason": "<string>",
    "manifestVersion": 123,
    "blockCount": 4503599627370495
  },
  "sitePurpose": "<string>",
  "siteHosting": "<string>",
  "businessContext": {
    "purpose": "<string>",
    "tone": "<string>",
    "constraints": [
      "<string>"
    ]
  },
  "siteContext": {
    "siteId": "<string>",
    "siteName": "<string>",
    "purpose": "<string>",
    "hosting": "<string>",
    "tone": "<string>",
    "constraints": [
      "<string>"
    ],
    "gdriveFolderId": "<string>"
  },
  "locale": "<string>",
  "slug": "<string>",
  "message": "<string>",
  "activeBlockId": "<string>",
  "activeBlockType": "<string>",
  "activeEditablePath": "<string>",
  "pendingPlanId": "<string>",
  "continuationChainId": "<string>"
}
'

Body

application/json
session
string
siteId
string
componentsManifest
siteCapabilities
sitePurpose
string
siteHosting
string
businessContext
siteContext
locale
string
slug
string
message
string
modelKey
enum<string>
Available options:
fast,
balanced,
reasoning,
codex
provider
enum<string>
Available options:
openai,
anthropic,
gemini
activeBlockId
string
activeBlockType
string
activeEditablePath
string
executionMode
enum<string>
Available options:
auto,
plan_only,
apply_pending_plan,
discard_pending_plan,
continue_chain
pendingPlanId
string
continuationChainId
string

Response

200

Default Response