Your API key. Create one in Ocoya. Authorization: Bearer <key> works too.
Inbox
List conversations
Returns the brand's inbox: DMs, comments, mentions, reviews and emails from every connected channel, the one with the newest message first, as the Inbox lists them. Archived conversations are left out unless archived=true.
List conversations
curl --request GET \
--url https://www.app.ocoya.com/api/_public/v1/inbox/conversations \
--header 'X-API-Key: <api-key>'{
"total": 42,
"page": 0,
"perPage": 25,
"data": [
{
"id": "cmhx3v0k2000b7aps8q2u4n6e",
"brandId": "cmayvq3hk00017apshay5qezu",
"type": "DM",
"status": "OPEN",
"archived": false,
"channel": {
"id": "clh49poxf008x8kov4ncbjty9",
"provider": "instagram",
"name": "Ocoya"
},
"customer": {
"name": "Ana García",
"url": "https://www.instagram.com/anagarcia",
"image": null,
"language": "es"
},
"assigneeId": "clh49n2u300008kovd2wq1p8z",
"labels": [
{
"id": "cmhx3w8hd000c7apsd1f0g2h3",
"name": "Needs follow-up",
"color": "#fa5252"
}
],
"unread": true,
"lastMessage": {
"id": "cmhx3x2pq000d7apsf4k5l6m7",
"type": "received",
"text": "Hi! Do you ship to Spain?",
"images": [],
"authorId": null,
"deleted": false,
"createdAt": "2024-01-01T00:00:00Z"
},
"createdAt": "2024-01-01T00:00:00Z"
}
]
}Authorizations
Query Parameters
Was this page helpful?