Messages
Get a message
Gets a single message from a conversation by its messageId.
Getting an individual message can be useful, for example if you want to check whether a user has read the message or not.
get/v1/{appId}/conversations/{conversationId}/messages/{messageId}
Request
- Base URLhttps://api.talkjs.com
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
appIdstring required
Example:abcd1234
A unique identifier of your TalkJS app. You can find your app ID on the Settings page of your dashboard.
conversationIdstring required
Example:0123456789abcdef
A unique identifier of a conversation.
messageIdstring required
Example:msg_123ABcdefghiJKlmNOpqRS
An automatically generated unique identifier of a message.
Response
Message fetched successfully.
Example response
{
"id": "msg_123ABcdefghiJKlmNOpqRS",
"type": "UserMessage",
"origin": "web",
"location": [
51.44442681184582,
5.4733118103642395
],
"text": "Hi, how are you?",
"custom": {
"priority": "high"
},
"attachment": {
"dimensions": {
"height": 1125,
"width": 516
},
"size": 51552,
"url": "https://example.com/attachment.jpg"
},
"conversationId": "0123456789",
"createdAt": 1697711905431,
"senderId": "alice",
"editedAt": 1629972494633,
"referencedMessageId": "msg_012ABcdefghiJKlmNOpqRS",
"readBy": [
"zayneb"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.