Conversations
Get a conversation
Gets a specific conversation.
get/v1/{appId}/conversations/{conversationId}
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.
Response
Conversation fetched successfully.
Example response
{
"id": "1629972494",
"participants": {
"alice": {
"access": "ReadWrite",
"notify": "MentionsOnly"
},
"zayneb": {
"access": "ReadWrite",
"notify": true
}
},
"subject": "Studio headphones",
"custom": {
"productId": "454545"
},
"createdAt": 1525249255419,
"topicId": "customer_support",
"photoUrl": "https://example.com/productpictures/012345.jpg",
"welcomeMessages": [
"Hello there!",
"I'm currently out of town, leave a message and I'll respond ASAP :)"
],
"lastMessage": {
"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.