List conversations
GET
/conversations
messages
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://trashnothing.com/api/v1.2/conversations'
Response Response Example
200 - Example 1
{
"conversations": [
{
"archived": false,
"blocked": false,
"conversation_id": 38914,
"last_message_date": "2019-07-24T22:51:09",
"messages": [
{
"content": "Here are some photos and the directions for pick up.",
"date": "2019-07-24T22:29:10",
"email_attachments": [
"Directions and map.pdf"
],
"from_user_id": 2946512,
"message_id": 10199633,
"photos": [
{
"images": [
{
"height": 120,
"url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg",
"width": 90
},
{
"height": 240,
"url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg",
"width": 180
},
{
"height": 360,
"url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg",
"width": 270
},
{
"height": 500,
"url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg",
"width": 375
}
],
"photo_id": "695624-768616",
"thumbnail": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg",
"url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg"
}
],
"subject": "Dining Table and 4 Chairs",
"to_user_id": 119458
}
],
"num_unread_messages": 1,
"user": {
"about_me": "Just an old fisherman looking to reuse more.",
"country": "GB",
"firstname": null,
"lastname": null,
"member_since": "2017-01-27T06:35:55",
"profile_image": "https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg",
"user_id": 2946512,
"username": "fred gibson"
}
}
],
"num_unread": 0,
"page": 0,
"per_page": 0
}
Request
Query Params
category
stringÂ
optional
page
integerÂ
optional
per_page
integerÂ
optional
The number of conversations to return per page (must be >= 1 and <= 30).
num_messages
integerÂ
optional
include_num_unread
integerÂ
optional
This is useful for showing users the total number of unread messages that they have in their inbox. Calculating the count will slow the request down a bit so setting this should be avoided for requests where it's not needed (eg. requesting archived or blocked conversations or requests that are just paging through older conversations).
device_pixel_ratio
numberÂ
optional
Responses
Modified at 2022-09-11 18:59:47