Skip to main content
POST
Chat endpoint for the AI website builder.

Authorizations

X-API-Key
string
header
required

Company API key - scoped to a specific company. Generate from the Integrations page in your dashboard.

Path Parameters

page_id
string
required

Body

application/json

Chat message

Request body for AI chat

companyId
string
required

Company ID

message
string
required

User message

attachments
object[]

Uploaded image attachments (design references)

clientMessageId
string

Client-generated id for the user message (dedupe)

messages
object[]

Previous chat messages (legacy clients only — thread history is stored server-side)

threadId
string

Chat thread to append to (defaults to the active thread)

Response

Missing required fields

error
string

Error message