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>"
}
]
}Save a new set of 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>"
}
]
}Bearer authentication header of the form Bearer <token>, see Authentication for more detail.
Show child attributes