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

# List call logs

GET https://next-dev.rtcleague.com/api/v1/public/calls

List completed calls for your organization, ordered by creation time (newest first). Paginated via cursor. Filter by `agent_id`, `call_type`, or date range.

Reference: https://docs.next-dev.rtcleague.com/api-reference/calls/list-calls

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `cursor` (string, optional) — Opaque cursor from a previous response.
- `limit` (integer, optional, default: 25) — Max items to return.
- `agent_id` (string, optional) — Filter by agent (use the `tel_agt_...` ID).
- `call_type` (string, optional) — Filter: `inbound`, `outbound`, `webcall`.
- `from_date` (string, optional) — ISO-8601 start datetime (inclusive).
- `to_date` (string, optional) — ISO-8601 end datetime (exclusive).

## Response

### 200

Successful Response

- `data` (list of PublicCallLogRead, required)
- `has_more` (boolean, required)
- `next_cursor` (string, optional) — Opaque cursor for the next page, or null if this is the last page.

## Errors

### 422 List Calls Calls Get Request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### PublicCallLogRead

Minimal call-log fields safe for public exposure. `status` is the canonical call lifecycle indicator: * `initiated` — call is being set up or running, no metrics yet * `completed` — call ended normally, metrics + recording available * `failed` — call setup failed (e.g. SIP error, agent dispatch failed) * `abandoned` — call started but `/import-call-data` never arrived (cleaned up by a background sweeper after the expiry window)

- `id` (string, required)
- `call_type` (string, required)
- `status` (string, required)
- `duration_seconds` (integer, required)
- `cost` (double, required)
- `created_at` (string, required)
- `agent_id` (string, optional)
- `workflow_id` (string, optional)
- `caller_number` (string, optional)
- `destination_number` (string, optional)
- `recording_url` (string, optional)
- `started_at` (string, optional)
- `ended_at` (string, optional)

### ValidationError

- `loc` (list of ValidationErrorLocItem, required)
- `msg` (string, required)
- `type` (string, required)

### ValidationErrorLocItem

- string
- integer

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "tel_call_19a8c4d3e2f1",
      "call_type": "outbound",
      "status": "completed",
      "duration_seconds": 187,
      "cost": 0.42,
      "created_at": "2026-05-13T14:00:00Z",
      "agent_id": "tel_agt_a3f9b22e",
      "workflow_id": "workflow_id",
      "caller_number": "+12345401155",
      "destination_number": "+14155021922",
      "recording_url": "https://...s3.../recordings/abc.mp4",
      "started_at": "2026-05-13T14:00:02Z",
      "ended_at": "2026-05-13T14:03:09Z"
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor"
}
```

**SDK Code**

```python
import requests

url = "https://next-dev.rtcleague.com/api/v1/public/calls"

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

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

print(response.json())
```

```javascript
const url = 'https://next-dev.rtcleague.com/api/v1/public/calls';
const options = {method: 'GET', headers: {Authorization: 'Bearer <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://next-dev.rtcleague.com/api/v1/public/calls"

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

	req.Header.Add("Authorization", "Bearer <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://next-dev.rtcleague.com/api/v1/public/calls")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <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://next-dev.rtcleague.com/api/v1/public/calls")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://next-dev.rtcleague.com/api/v1/public/calls', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://next-dev.rtcleague.com/api/v1/public/calls");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://next-dev.rtcleague.com/api/v1/public/calls")! 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()
```