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

# List or search conversations

GET https://api.beconversive.com/api/v2/conversations

Returns the account's Conversations, most recently active first. Search by the end user's mobile number and filter with the query parameters. Use a conversation's `id` to get its messages.


Reference: https://docs.conversive.ai/developer-guide/list-conversations

## Authentication

- `apiKey` header (required) — API Key authentication via header

## Request

### Query parameters

- `mobile_number` (string, optional) — The end user's mobile number, or part of it (1–100 characters), e.g. 919800000001 or 0001. Also matches the contact name.
- `sender_id` (string, optional) — Your business number or sender address. Without it, conversations of every sender ID of the account.
- `status` (string, optional, default: open) — open, closed or open,closed. Default: open.
- `channel` (string, optional) — sms, whatsapp, email, facebook, instagram, ...
- `is_sent` (enum, optional, default: 0) — 0: inbox conversations; 1: conversations with only sent messages. Default: 0.
  - Allowed values: `0`, `1`
- `page` (integer, optional, default: 0) — Page number, from 0 to 99999. Default: 0 (the newest page).
- `page_size` (integer, optional, default: 20) — Items per page, from 1 to 100. Default: 20.
- `user_id` (string, optional) — Portal user ID, user name or Salesforce user ID.

## Response

### 200

Retrieved

- `list of Conversation`

## Errors

### 400 Bad Request Error

Bad Request – NO-API-KEY, FORBIDDEN-API-KEY, INVALID-PAGE, or INVALID-PAGE-SIZE

- `status` (string, optional)
- `message` (string, optional)

### 405 Method Not Allowed Error

Method Not Allowed – only GET is allowed

- `status` (string, optional)
- `message` (string, optional)

### 422 Unprocessable Entity Error

Unprocessable Entity – invalid parameter value

- `status` (string, optional)
- `message` (string, optional)

### 502 Bad Gateway Error

Bad Gateway – SAAS-API-UNAVAILABLE (temporary, retry after a short wait)

- `status` (string, optional)
- `message` (string, optional)

### 504 Gateway Timeout Error

Gateway Timeout – SAAS-API-TIMEOUT (temporary, retry after a short wait)

- `status` (string, optional)
- `message` (string, optional)

## Types

### Conversation

- `id` (integer, optional) — Conversation ID. Pass it to Get conversation messages.
- `sender_id` (string, optional) — Your business number or sender address in this conversation.
- `mobile_number` (string, optional) — The end user's number (their address for email).
- `contact_name` (string, optional) — The contact's name when known, otherwise the number.
- `contact_phone` (string, optional) — The end user's number without the country code.
- `country_code` (string, optional) — The end user's country code, e.g. 91.
- `channel` (string, optional) — sms, whatsapp, email, ...
- `status` (enum, optional)
  - Allowed values: `open`, `closed`
- `last_message_id` (integer, optional) — ID of the latest message.
- `last_message_text` (string, optional) — Text of the latest message.
- `last_message_direction` (enum, optional) — IN (from the end user) or OUT (from you).
  - Allowed values: `IN`, `OUT`
- `last_sent_text` (string, optional, nullable) — Text of the latest outgoing message.
- `unread_message_count` (integer, optional) — Incoming messages not read yet.
- `modified_at` (string, optional) — Time of the latest activity, YYYY-MM-DD HH:MM:SS.
- `created_on` (string, optional) — When the conversation started, YYYY-MM-DD HH:MM:SS.

## Examples

**Response**

```json
[
  {
    "id": 53564,
    "sender_id": "918000000000",
    "mobile_number": "919800000001",
    "contact_name": "Rahul Sharma",
    "channel": "whatsapp",
    "status": "open",
    "last_message_text": "Thanks",
    "last_message_direction": "IN",
    "unread_message_count": 1,
    "modified_at": "2026-11-19 10:01:00",
    "created_on": "2026-11-18 09:15:00"
  }
]
```

**SDK Code**

```python listConversations_example
import requests

url = "https://api.beconversive.com/api/v2/conversations"

headers = {"apiKey": "<apiKey>"}

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

print(response.json())
```

```javascript listConversations_example
const url = 'https://api.beconversive.com/api/v2/conversations';
const options = {method: 'GET', headers: {apiKey: '<apiKey>'}};

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

```go listConversations_example
package main

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

func main() {

	url := "https://api.beconversive.com/api/v2/conversations"

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

	req.Header.Add("apiKey", "<apiKey>")

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

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

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

}
```

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

url = URI("https://api.beconversive.com/api/v2/conversations")

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

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

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

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

HttpResponse<String> response = Unirest.get("https://api.beconversive.com/api/v2/conversations")
  .header("apiKey", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.beconversive.com/api/v2/conversations', [
  'headers' => [
    'apiKey' => '<apiKey>',
  ],
]);

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

```csharp listConversations_example
using RestSharp;

var client = new RestClient("https://api.beconversive.com/api/v2/conversations");
var request = new RestRequest(Method.GET);
request.AddHeader("apiKey", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift listConversations_example
import Foundation

let headers = ["apiKey": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.beconversive.com/api/v2/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()
```