Skip to main content
GET
/
conversations
List conversations
curl --request GET \
  --url https://api.partoo.co/v2/conversations \
  --header 'x-APIKey: <api-key>'
{
  "conversations": [
    {
      "id": 123,
      "consumer_img": "https://www.example.com/profile-picture.jpg",
      "consumer_name": "John Doe",
      "consumer_phone_number": "+33612345678",
      "last_message": null,
      "is_read": true,
      "status": "Open",
      "created_at": "2023-01-31 16:22:17.327878+00:00",
      "has_one_user_message": true,
      "business": {
        "id": "<string>",
        "name": "<string>",
        "city": "<string>",
        "zipcode": "<string>",
        "country": "<string>",
        "formatted_address": "<string>"
      },
      "messaging_partner": "Facebook",
      "issues": [
        "facebook_no_page_linked"
      ],
      "first_message_date": "<string>",
      "is_expired": false,
      "is_solved": false,
      "assigned_user_id": "62d80fae74e8b11d700302b8",
      "custom_channel": null
    }
  ],
  "count": 1,
  "next_cursor": "<string>"
}

Authorizations

x-APIKey
string
header
required

The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.

Query Parameters

per_page
integer
default:30

Number of items to return per page.

Required range: 1 <= x <= 100
cursor
string

The cursor identifiying the page of data to fetch. If no cursor is provided, the query will return the first page of data. A cursor for the next page of data is provided in the response of this request.

business__in
string[]

Filter by business ids

Business id

Response

OK

Response object

conversations
Conversation · object[]

The list of conversations, paginated.

count
integer

Total number of results available for the filters and dimensions requested.

Example:

1

next_cursor
string | null

The cursor to use in order to retrieve the next page of data. When all data have been fetched, the value is null.