List conversation messages
Examples
curl "https://api.bird.com/workspaces/a1405560-c8d3-4b1a-877d-3f449ad95352/conversations/16e1df9e-c6ac-406b-b1ce-13f34d0dea08/messages" \
-H "Authorization: AccessKey abcd"
{
"results": [
{
"id": "0c854061-6026-48c7-a2e8-bffb6458727b",
"conversationId": "16e1df9e-c6ac-406b-b1ce-13f34d0dea08",
"reference": "",
"sender": {
"id": "68b80b8d-8060-42df-bda3-73505a8fdb84",
"type": "accessKey",
"status": "active",
"displayName": "My first email key",
"avatarUrl": ""
},
"draft": false,
"recipients": [
{
"type": "to",
"id": "8f0b5377-2edc-4116-a8e8-6a475f245a04",
"identifierKey": "emailaddress",
"identifierValue": "some.customer@example.com",
"platformAddress": "some.customer@example.com",
"contactAnnotation": {
"name": "John Doe"
}
}
],
"status": "delivered",
"source": "conversations",
"body": {
"type": "text",
"text": {
"text": "Hey, listen!"
}
},
"interactions": null,
"createdAt": "2024-11-25T20:12:10.514Z",
"updatedAt": "2024-11-25T20:12:35.281Z"
},
{
"id": "3e75a9d2-2a54-45ac-856a-bbe02f874332",
"conversationId": "16e1df9e-c6ac-406b-b1ce-13f34d0dea08",
"reference": "3e75a9d2-2a54-45ac-856a-bbe02f874332",
"sender": {
"id": "8f0b5377-2edc-4116-a8e8-6a475f245a04",
"type": "contact",
"status": "active",
"displayName": "John Doe",
"avatarUrl": "",
"contact": {
"identifierKey": "emailaddress",
"identifierValue": "some.customer@example.com",
"platformAddress": "some.customer@example.com",
}
},
"draft": false,
"status": "delivered",
"source": "channels",
"body": {
"type": "html",
"html": {
"text": "test\r\n",
"html": "<p>test</p>"
}
},
"interactions": null,
"createdAt": "2024-11-25T19:31:47.264Z",
"updatedAt": "2024-11-25T19:31:47.264Z",
"meta": {
"extraInformation": {
"email_headers": "eyJTdWJqZWN0IjpbInRlc3QiXX0="
}
},
"receiverTypes": [
"to"
]
}
]
}
Note: if the conversation has more than 10 messages, the results may be paginated. Please refer to Pagination on how to use nextPageToken
.
Last updated