POST
/
messages
curl --request POST \
  --url https://api.gleap.io/v3/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'project: <project>' \
  --data '{
  "user": "<string>",
  "session": "<string>",
  "bot": true,
  "fallbackUser": {
    "username": "<string>",
    "email": "<string>",
    "imageUrl": "<string>"
  },
  "messageRef": "<string>",
  "ticket": "<string>",
  "data": "<any>",
  "translatedData": "<any>",
  "type": "<string>",
  "emailId": "<string>",
  "sessionNotificationsUnread": true,
  "outbound": "<string>",
  "outboundTemplate": "<string>",
  "outboundSubject": "<string>",
  "status": "<any>",
  "statusHistory": [
    "<any>"
  ],
  "comment": "<any>",
  "isReply": true,
  "kaiChat": true,
  "aiData": "<any>",
  "attachments": [
    {
      "name": "<string>",
      "url": "<string>",
      "type": "<string>"
    }
  ],
  "channel": {
    "id": "<string>",
    "type": "<string>",
    "messageId": "<string>"
  },
  "sendToChannel": true,
  "isNote": true,
  "rating": "<string>"
}'
"<any>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

project
string
required

Body

application/json

Response

200 - application/json

Ok

The response is of type any.