Skip to main content
POST
/
ai
/
chat
AI Chat
curl --request POST \
  --url https://api.d1g.qzz.io/api/v1/ai/chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "Give me trending TikTok topics",
  "conversationHistory": [
    {
      "role": "user",
      "content": "<string>"
    }
  ]
}
'
{
  "success": true,
  "data": {
    "response": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Use JWT token (from Supabase auth) or API key (format: sk_live_...)

Body

application/json
message
string
required
Example:

"Give me trending TikTok topics"

conversationHistory
object[]

Response

200 - application/json

AI response generated

success
boolean
Example:

true

data
object