> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.prolific.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.prolific.com/_mcp/server.

# List conversations

GET https://api.prolific.com/api/v1/conversations/

Lists the caller's conversations, most recently updated first. A conversation is the thread between two members and carries a subject, topic and study where those have been set. Conversations that predate these fields return them as null.

Pass `workspace_id` to list a workspace's conversations instead of the caller's own. Pass `study_id` to only return conversations about that study.

Results are paginated. Follow `next` for the following page, or stop when it is null.


Reference: https://docs.prolific.com/api-reference/messages/get-conversations

## Authentication

- `Authorization` header (required) (prefixed with `Token `) — The Prolific API uses API token to authenticate requests. You can create an API token directly from your settings. Your API token does not have an expiry date and carries full permission, so be sure to keep them secure. If your token is leaked, delete it and create a new one directly in the app. In your requests add `Authorization` header with the value `Token <your token>`.

## Request

### Query parameters

- `workspace_id` (string, optional) — List the conversations of this workspace instead of the caller's own. The caller must belong to the workspace.
- `study_id` (string, optional) — Only return conversations about this study.
- `limit` (integer, optional) — Page size. Defaults to 25, capped at 100.
- `cursor` (string, optional) — Opaque token from a previous response's `next` link.

## Response

### 200

A page of conversations

- `next` (string, required, nullable) — URL of the next page, or null on the last page.
- `results` (list of object, required)
  - `id` (string, required) — The conversation id. The same value appears as `channel_id` on its messages.
  - `members` (list of object, required) — Who is in the conversation. A member is a user or, for workspace messaging, a workspace.
    - `id` (string, required)
    - `type` (enum, required)
      - Allowed values: `user`, `space`
  - `subject` (string, required, nullable) — What the conversation is about. Null on conversations that predate subjects.
  - `topic` (enum, required, nullable) — One of the message categories, or null.
    - Allowed values: `payment-issues`, `technical-issues`, `feedback`, `rejections`, `other`
  - `study_id` (string, required, nullable) — The study the conversation is about, or null.
  - `unread_count` (integer, required) — Unread messages for the caller.
  - `datetime_created` (datetime, required)
  - `datetime_updated` (datetime, required) — When the most recent message was sent.
  - `last_message_body` (string, optional, nullable) — Body of the most recent message.

## Errors

### 503 Service Unavailable Error

Message service temporarily unavailable

- `status` (integer, required) — Status code as in the http standards
- `error_code` (integer, required) — Internal error code
- `title` (string, required) — Error title
- `detail` (string or list of string or object, required) — Error detail
  - object
    - `any_field` (list of string, optional) — Name of the field with a validation error and as a value an array with the error descriptions
- `additional_information` (string, optional) — Optional extra information
- `traceback` (string, optional) — Optional debug information
- `interactive` (boolean, optional)

### 504 Gateway Timeout Error

Message query timed out

- `status` (integer, required) — Status code as in the http standards
- `error_code` (integer, required) — Internal error code
- `title` (string, required) — Error title
- `detail` (string or list of string or object, required) — Error detail
  - object
    - `any_field` (list of string, optional) — Name of the field with a validation error and as a value an array with the error descriptions
- `additional_information` (string, optional) — Optional extra information
- `traceback` (string, optional) — Optional debug information
- `interactive` (boolean, optional)

### 400 Client Request Error

Error

- `status` (integer, required) — Status code as in the http standards
- `error_code` (integer, required) — Internal error code
- `title` (string, required) — Error title
- `detail` (string or list of string or object, required) — Error detail
  - object
    - `any_field` (list of string, optional) — Name of the field with a validation error and as a value an array with the error descriptions
- `additional_information` (string, optional) — Optional extra information
- `traceback` (string, optional) — Optional debug information
- `interactive` (boolean, optional)

## Examples

**Response**

```json
{
  "next": "string",
  "results": [
    {
      "id": "d45c8a5e812ff990fc6546beaf888c9820f4c184f7200a45d900cf0f321f7f38",
      "members": [
        {
          "id": "619e049f7648a4e1f8f3645b",
          "type": "user"
        }
      ],
      "subject": "Bonus for the second session",
      "topic": "payment-issues",
      "study_id": "620ca2735fcbba4fa2b3211a",
      "unread_count": 1,
      "datetime_created": "2024-01-15T09:30:00Z",
      "datetime_updated": "2024-01-15T09:30:00Z",
      "last_message_body": "string"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.prolific.com/api/v1/conversations/"

headers = {"Authorization": "Token <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.prolific.com/api/v1/conversations/';
const options = {method: 'GET', headers: {Authorization: 'Token <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.prolific.com/api/v1/conversations/"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Token <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.prolific.com/api/v1/conversations/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Token <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.prolific.com/api/v1/conversations/")
  .header("Authorization", "Token <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.prolific.com/api/v1/conversations/', [
  'headers' => [
    'Authorization' => 'Token <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.prolific.com/api/v1/conversations/");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Token <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Token <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.prolific.com/api/v1/conversations/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```