Skip to content
Navigation

Post a message to a chat

POST
https://api.nicer.travel/chat/{chatId}/reply

Appends a message, text and/or attachment URLs, to the chat, updates the channel's last-message time and the author's read mark, and emits a conversation-created event. Requires message text or at least one asset; assets must be reachable HTTPS URLs and text is capped at 10,000 characters. Returns the stored row with HTML stripped from the plain text and a rendered HTML copy.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • chatId
    string
    required

Request body JSON required

  • assetsUrls
    optional
    array of
    string
  • message
    optional
    string
  • needsAiResponse
    optional
    boolean

Returns

200

OK

JSON
  • attachmentUrls
    array of
    string
    required
  • authorId
    string
    required
  • chatId
    string
    required
  • createdBy
    string
    required
  • lastModifiedBy
    string
    required
  • message
    string
    required
  • conversationId
    string
    required
  • createdAt
    string
    required
  • updatedAt
    string
    required
  • type
    string
    required
  • messageHtml
    optional
    string

    The text as HTML.

  • needsAiResponse
    optional
    boolean

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close