Skip to main content
GET
/
api
/
agents
/
{agent_id}
/
conversations
List Agent Conversations
curl --request GET \
  --url https://api.getello.ai/api/agents/{agent_id}/conversations \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.getello.ai/api/agents/{agent_id}/conversations"

headers = {"X-API-Key": "<api-key>"}

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

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.getello.ai/api/agents/{agent_id}/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getello.ai/api/agents/{agent_id}/conversations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

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

func main() {

url := "https://api.getello.ai/api/agents/{agent_id}/conversations"

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

req.Header.Add("X-API-Key", "<api-key>")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.getello.ai/api/agents/{agent_id}/conversations")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.getello.ai/api/agents/{agent_id}/conversations")

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

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "status": 200,
  "message": "Assistant conversations retrieved successfully",
  "data": {
    "conversations": [
      {
        "id": "6900be1d39f3fd5dd4e503d4",
        "conversation_id": "6900b87ca70928b1224f0619",
        "assistant_id": "68dce5202fc07b92042493b1",
        "to_number": "+15550123",
        "from_number": "+15550999",
        "created_at": "2025-10-28T12:35:17.423000Z",
        "status": "disconnected"
      }
    ],
    "assistant_name": "My Agent",
    "total_count": 42,
    "page": 1,
    "limit": 10
  },
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 42,
    "totalPages": 5,
    "hasNextPage": true,
    "hasPrevPage": false
  }
}
{
"status": 400,
"message": "<string>"
}
{
"status": 401,
"message": "Authentication token is missing or invalid"
}
{
"status": 500,
"message": "Error while getting assistant conversations",
"error": {
"details": "Error message details"
}
}

Authorizations

X-API-Key
string
header
required

Path Parameters

agent_id
string
required

Unique identifier of the agent.

Example:

"68dce5202fc07b92042493b1"

Query Parameters

page
integer
default:1

Page number for pagination.

Required range: x >= 1
Example:

1

limit
integer
default:10

Number of conversations per page.

Required range: 1 <= x <= 100
Example:

10

Response

Assistant conversations retrieved successfully

status
integer
Example:

200

message
string
Example:

"Assistant conversations retrieved successfully"

data
object
pagination
object

Gateway pagination wrapper (may be inaccurate unless upstream provides pagination fields).