← Home
POST/hyax-api/v1/chats/:id/messages

Send chat reply

Send a reply as the team owner (`CREATOR` sender type). Broadcasts to connected clients.

Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.

Request body

FieldRequiredDescription
content Required Message text
mediaUrlNoOptional media URL
mediaTypeNoOptional MIME type
mediaPriceNoOptional paywalled media price

Request

curl -X POST 'https://platform.hyax.com/hyax-api/v1/chats/clx_example_id/messages' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "content": "Thanks for reaching out. I'll look into your invoice now."
  }'

Response

{
  "success": true,
  "data": {
    "id": "msg…",
    "chatId": "clx…",
    "content": "Thanks for reaching out. I'll look into your invoice now.",
    "senderType": "CREATOR",
    "createdAt": "2025-01-15T12:05:00.000Z"
  }
}