GetChats

GET /chats

Returns chats from a user

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • _id string Required
    • productId string Required

      Product ID

    • sellerId string Required

      User ID

    • buyerId string Required

      User ID

    • deletedBySeller boolean
    • deletedByBuyer boolean
  • 401

    Unauthorized

  • 500

    Internal Server Error

GET /chats
curl \
 --request GET 'https://garden-to-yours.herokuapp.com/chats' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "_id": "string",
    "buyerId": "string",
    "sellerId": "string",
    "productId": "string",
    "deletedByBuyer": true,
    "deletedBySeller": true
  }
]