← Documentation 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
contentYesMessage text
mediaUrlNoOptional media URL
mediaTypeNoOptional MIME type
mediaPriceNoOptional paywalled media price

Request examples

Same request in cURL, Node.js (fetch), and PHP (ext-curl).

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."
  }'

Example response

Shape varies by data; values are illustrative.

{
  "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"
  }
}