Skip to main content
POST
/
api
/
ai
/
chat
Canvas chat with brand context
curl --request POST \
  --url https://app.alana.shopping/api/ai/chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspace_id": "<string>",
  "message": "<string>",
  "brand_id": "<string>",
  "conversation_id": "<string>",
  "include_product_context": false
}
'
{
  "conversation_id": "<string>",
  "message": "<string>",
  "suggestions": [
    "<string>"
  ],
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain a token via the authentication endpoint and include it in the Authorization header: Authorization: Bearer <token>

Body

application/json
workspace_id
string
required
message
string
required
Minimum string length: 1
brand_id
string | null

Optional brand context for AI

conversation_id
string | null

Continue existing conversation

include_product_context
boolean
default:false

Response

Chat response generated successfully

conversation_id
string
message
string
suggestions
string[]
created_at
string<date-time>