Get a conversation
curl --request GET \
--url https://api.social-api.ai/v1/inbox/conversations/{id} \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/inbox/conversations/{id}', 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/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"account_id": "<string>",
"created_at": "<string>",
"id": "<string>",
"last_message": "<string>",
"last_message_at": "<string>",
"page_id": "<string>",
"participant_id": "<string>",
"participant_name": "<string>",
"participant_picture": "<string>",
"platform": "<string>",
"platform_id": "<string>",
"status": "<string>",
"unread_count": 123,
"updated_at": "<string>",
"user_id": "<string>"
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Inbox
Get a conversation
Returns a single inbox conversation by ID.
GET
/
inbox
/
conversations
/
{id}
Get a conversation
curl --request GET \
--url https://api.social-api.ai/v1/inbox/conversations/{id} \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/inbox/conversations/{id}', 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/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"account_id": "<string>",
"created_at": "<string>",
"id": "<string>",
"last_message": "<string>",
"last_message_at": "<string>",
"page_id": "<string>",
"participant_id": "<string>",
"participant_name": "<string>",
"participant_picture": "<string>",
"platform": "<string>",
"platform_id": "<string>",
"status": "<string>",
"unread_count": 123,
"updated_at": "<string>",
"user_id": "<string>"
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}