Skip to main content
POST
/
v6
/
messages
Save messages
curl --request POST \
  --url https://sandbox.tight.com/v6/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    {
      "conversationId": "con_12345",
      "text": "<string>",
      "attachmentIds": [
        "<string>"
      ]
    }
  ]
}
'
{
  "result": "SUCCESS",
  "data": [
    {
      "result": "SUCCESS",
      "statusCode": 200,
      "data": {
        "id": "msg_67890",
        "conversationId": "<string>",
        "author": {
          "userId": "<string>",
          "email": "user@example.com"
        },
        "text": "Let's discuss the new feature requirements",
        "status": "ACTIVE",
        "createdDateTime": "2023-11-07T05:31:56Z",
        "lastUpdatedDateTime": "2023-11-07T05:31:56Z",
        "reactions": [
          {
            "emojiCode": "thumbs_up",
            "authorInfo": [
              {
                "userId": "<string>",
                "email": "user@example.com"
              }
            ]
          }
        ],
        "attachments": [
          {
            "id": "att_894321",
            "url": "https://files.example.com/attachment/receipt.pdf",
            "fileName": "receipt.pdf",
            "fileSize": "24 KB",
            "createdDateTime": "2023-11-07T05:31:56Z",
            "iconUrl": "https://cdn.sandbox.tight.com/icons/attachments/pdf.svg"
          }
        ]
      },
      "error": [
        {
          "type": "UNKNOWN_ERROR",
          "message": "<string>",
          "param": "<string>"
        }
      ]
    }
  ],
  "error": [
    {
      "type": "UNKNOWN_ERROR",
      "message": "<string>",
      "param": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, see Authentication for more detail.

Body

application/json
data
object[]
required

Response

Success

result
enum<string>

The result of the action performed.

Available options:
SUCCESS,
FAILURE
data
object[]

The data generated by the action performed.

error
object[]