POST
/
api
/
chat
{
  "success": true,
  "reply": "<string>",
  "sitePath": "<string>"
}

リクエスト

message
string
required
サイト生成の指示(自然言語)
newSite
boolean
新規サイト作成の場合は true

Example Request

curl -X POST https://app.hirameki-web.com/api/chat \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "カフェのWebサイトを作成してください",
    "newSite": true
  }'

レスポンス

success
boolean
リクエストの成功/失敗
reply
string
AIからの応答メッセージ
sitePath
string
生成されたサイトのパス

Example Response

{
  "success": true,
  "reply": "カフェのWebサイトを作成しました。",
  "sitePath": "u-user123-1.sunny-cafe"
}