Chats

Reply in a chat

Reply in a live chat as your team. The visitor sees it at once, from "Team". A reply to a chat the AI is answering takes it over. Limited to 30 replies a minute per key, on top of the overall limit.

curl -X POST https://vocenya.com/api/public/v1/chats/205/messages \
  -H "Authorization: Bearer $VOCENYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"body": "Thanks for waiting! We have an opening on Thursday at 3pm."}'
post/chats/{chat}/messages

Request

  • Base URL: https://vocenya.com/api/public/v1
  • URL: https://vocenya.com/api/public/v1/chats/{chat}/messages
  • Auth: HTTP bearer

Path parameters

chatinteger required

The chat id.

Request body

bodystring required

The reply, as plain text. The visitor sees it from "Team".

Example request

{
  "body": "Thanks for waiting! We have an opening on Thursday at 3pm. Shall I hold it for you?"
}

Response

The message that was sent.

Example response

{
  "data": {
    "chat_id": 205,
    "role": "team",
    "author": "Team"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.