List messages in conversation
GET
https://app-dev.jollor.com/api/public/v1/projects/{project_id}/conversations/{conversation_id}/messages
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://app-dev.jollor.com/api/public/v1/projects/<your project_id>/conversations/{{conversation_id}}/messages?limit=1000' \
--header 'Content-Type: application/json'
Response Response Example
[
{
"id": "654a160e1b8f0f673d4a6a9e",
"provider": "facebook",
"sent_at": "2023-11-07T10:48:41.000Z",
"is_incoming": true,
"sender": {
"id": "654a160e1b8f0f673d4a6a9f",
"name": "Dương Duy"
},
"recipient": {
"id": "5440fb68f779df5379001123",
"name": "Psikipedie"
},
"text": "hello",
"_links": {
"self": {
"href": "/public/v1/messages/654a160e1b8f0f673d4a6a9e"
},
"capabilities": {
"href": "/public/v1/messages/654a160e1b8f0f673d4a6a9e/capabilities"
}
}
},
{
"id": "654a62070b60f866c752e4b9",
"provider": "facebook",
"sent_at": "2023-11-07T10:48:41.000Z",
"is_incoming": false,
"sender": {
"id": "5440fb68f779df5379001123",
"name": "Psikipedie"
},
"recipient": {
"id": "654a160e1b8f0f673d4a6a9f",
"name": "Dương Duy"
},
"text": "Dobrý den Duy Dương , můžeme vám pomoct? :)",
"_links": {
"self": {
"href": "/public/v1/messages/654a62070b60f866c752e4b9"
},
"capabilities": {
"href": "/public/v1/messages/654a62070b60f866c752e4b9/capabilities"
}
}
}
]
Request
Path Params
project_id
string
required
Example:
{{project_id}}
conversation_id
string
required
Example:
{{conversation_id}}
Query Params
limit
integer
required
Example:
1000
Header Params
Content-Type
string
required
Example:
application/json
Responses
Modified at 2024-02-19 02:28:19