List messages in a conversation
curl --request GET \
--url https://api.social-api.ai/v1/inbox/conversations/{conversation_id}/messages \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.social-api.ai/v1/inbox/conversations/{conversation_id}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/inbox/conversations/{conversation_id}/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"attachment_type": "<string>",
"attachment_url": "<string>",
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"direction": "<string>",
"id": "<string>",
"platform_id": "<string>",
"reply_to": {
"platform_id": "<string>"
},
"sender_id": "<string>",
"sender_name": "<string>",
"text": "<string>",
"status": "<string>",
"status_updated_at": "2023-11-07T05:31:56Z"
}
],
"last_synced_at": "2023-11-07T05:31:56Z",
"pagination": {
"has_more": true,
"next_cursor": "<string>"
},
"sync_state": "idle"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Inbox
List messages in a conversation
Returns paginated messages for an inbox conversation, newest first.
GET
/
inbox
/
conversations
/
{conversation_id}
/
messages
List messages in a conversation
curl --request GET \
--url https://api.social-api.ai/v1/inbox/conversations/{conversation_id}/messages \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.social-api.ai/v1/inbox/conversations/{conversation_id}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/inbox/conversations/{conversation_id}/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"attachment_type": "<string>",
"attachment_url": "<string>",
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"direction": "<string>",
"id": "<string>",
"platform_id": "<string>",
"reply_to": {
"platform_id": "<string>"
},
"sender_id": "<string>",
"sender_name": "<string>",
"text": "<string>",
"status": "<string>",
"status_updated_at": "2023-11-07T05:31:56Z"
}
],
"last_synced_at": "2023-11-07T05:31:56Z",
"pagination": {
"has_more": true,
"next_cursor": "<string>"
},
"sync_state": "idle"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Authorizations
Query Parameters
Response
Paginated list of messages