Skip to Content

SendChatMessage

POST
/support/v1/chat/messages

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Request Body

required
application/json
{
  "$ref": "#/components/schemas/support.v1.SendChatMessageRequest",
  "$ref-value": {
    "type": "object",
    "properties": {
      "body": {
        "type": "string",
        "examples": [
          "Our uploads are failing in eu-west."
        ],
        "title": "body",
        "maxLength": 5000,
        "minLength": 1
      }
    },
    "title": "SendChatMessageRequest",
    "additionalProperties": false
  }
}

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/support.v1.SendChatMessageResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "message": {
        "title": "message",
        "$ref": "#/components/schemas/support.v1.ChatMessage",
        "$ref-value": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "examples": [
                "Cm4Nw8Tq1X"
              ],
              "title": "id"
            },
            "thread_id": {
              "type": "string",
              "examples": [
                "Th7Yb2Ke9P"
              ],
              "title": "thread_id"
            },
            "author_id": {
              "type": "string",
              "examples": [
                "Us1234abcd"
              ],
              "title": "author_id"
            },
            "author_type": {
              "examples": [
                "MESSAGE_AUTHOR_CUSTOMER"
              ],
              "title": "author_type",
              "$ref": "#/components/schemas/support.v1.MessageAuthor",
              "$ref-value": {
                "type": "string",
                "title": "MessageAuthor",
                "enum": [
                  "MESSAGE_AUTHOR_UNSPECIFIED",
                  "MESSAGE_AUTHOR_CUSTOMER",
                  "MESSAGE_AUTHOR_AGENT",
                  "MESSAGE_AUTHOR_SYSTEM"
                ]
              }
            },
            "body": {
              "type": "string",
              "examples": [
                "Our uploads are failing in eu-west."
              ],
              "title": "body"
            },
            "created_at": {
              "examples": [
                "2026-01-15T10:30:00Z"
              ],
              "title": "created_at",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            }
          },
          "title": "ChatMessage",
          "additionalProperties": false
        }
      }
    },
    "title": "SendChatMessageResponse",
    "additionalProperties": false
  }
}
default
curl -X POST 'https://api.rixl.com/support/v1/chat/messages'

Success

application/json

{
  "$ref": "#/components/schemas/support.v1.SendChatMessageResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "message": {
        "title": "message",
        "$ref": "#/components/schemas/support.v1.ChatMessage",
        "$ref-value": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "examples": [
                "Cm4Nw8Tq1X"
              ],
              "title": "id"
            },
            "thread_id": {
              "type": "string",
              "examples": [
                "Th7Yb2Ke9P"
              ],
              "title": "thread_id"
            },
            "author_id": {
              "type": "string",
              "examples": [
                "Us1234abcd"
              ],
              "title": "author_id"
            },
            "author_type": {
              "examples": [
                "MESSAGE_AUTHOR_CUSTOMER"
              ],
              "title": "author_type",
              "$ref": "#/components/schemas/support.v1.MessageAuthor",
              "$ref-value": {
                "type": "string",
                "title": "MessageAuthor",
                "enum": [
                  "MESSAGE_AUTHOR_UNSPECIFIED",
                  "MESSAGE_AUTHOR_CUSTOMER",
                  "MESSAGE_AUTHOR_AGENT",
                  "MESSAGE_AUTHOR_SYSTEM"
                ]
              }
            },
            "body": {
              "type": "string",
              "examples": [
                "Our uploads are failing in eu-west."
              ],
              "title": "body"
            },
            "created_at": {
              "examples": [
                "2026-01-15T10:30:00Z"
              ],
              "title": "created_at",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            }
          },
          "title": "ChatMessage",
          "additionalProperties": false
        }
      }
    },
    "title": "SendChatMessageResponse",
    "additionalProperties": false
  }
}