postMessages
Create a Messages resource, which represents a message for a messageThread.
In: header
Header Parameters
A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.
A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.
Request Body
application/json
Create Message Request
Create Message Request
The identifier of the messageThreads that owns this Messages resource.
Whether this resource is marked as secure.
-
0- Messages will protected in email notifications. -
1- Message will display entirely.
Value in
- 0
- 1
Whether this resource is marked as read.
-
0- Message has not been read yet. -
1- Message has been read and a value.
Value in
- 0
- 1
Free-form text for adding a message to a messageThread resource.
Response Body
application/json
application/json
curl -X POST "https://example.com/messages" \ -H "Content-Type: application/json" \ -d '{ "messageThread": "t1_mtd_10ca1fcf172a9ac47656a21", "secure": 1, "read": 0, "message": "This is a test message" }'{ "response": { "data": [ { "id": "t1_mtd_10ca1fcf172a9ac47656a21", "created": "2025-03-07 00:10:39.1099", "modified": "2025-03-07 00:10:39.1099", "creator": "t1_log_0092b50e8812b18e41d511s", "modifier": "t1_log_0092b50e8812b18e41d511s", "messageThread": "t1_mtd_10ca7fcf172a9ac47656a2c", "opposingMessage": "", "type": "incoming", "generated": 1, "secure": 1, "read": "0", "message": "This is a test message" } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}