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

# List calls

GET https://tryenvoy.ai/api/v1/calls

List phone calls with pagination, filtering, and search.

**Authentication:** Supports API key and bearer token authentication.

Reference: https://docs.tryenvoy.ai/api-reference/endpoints/calls/list

## Authentication

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

## Servers

- `https://tryenvoy.ai/api/v1` (Production, default)
- `https://staging.tryenvoy.ai/api/v1` (Staging)

## Request

### Query parameters

- `status` (string, optional, nullable) — Filter by call status
- `statuses` (list of string, optional, nullable) — Repeatable multi-status filter (``?statuses=FAILED&statuses=VOICEMAIL``); a call matches any listed status. Combines with ``status`` as a union.
- `call_direction` (string, optional, nullable) — Filter by call direction (INBOUND | OUTBOUND)
- `time_period` (enum, optional) — Time period for call filtering. Windows on the call's scheduled/dial time (``call_time``), not the row's creation time.
  - Allowed values: `day`, `week`, `month`, `custom`
- `start_date` (date, optional, nullable) — Start date (required when time_period='custom')
- `end_date` (date, optional, nullable) — End date (required when time_period='custom')
- `search` (string, optional, nullable) — Search by phone number, workflow, or load
- `page` (integer, optional, default: 1) — Page number
- `page_size` (integer, optional, default: 20) — Items per page
- `order_by` (string, optional, default: created_at) — Field to order by
- `order_desc` (boolean, optional, default: true) — Order descending

### Headers

- `X-Organization-ID` (string, optional, nullable)

## Response

### 200

Successful Response

- `data` (list of CallResponse, required) — List of items for the current page
- `pagination` (PaginationInfo, required) — Pagination metadata

## Errors

### 401 Unauthorized Error

Not authenticated - missing or invalid token/API key

- `any`

### 403 Forbidden Error

Insufficient permissions for this operation

- `any`

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

### 429 Too Many Requests Error

Rate limit exceeded - see Retry-After header

- `any`

## Types

### CallResponse

v1 call response - wraps domain PhoneCall with prefixed IDs.

- `id` (string, required)
- `status` (enum, required)
  - Allowed values: `SCHEDULED`, `PENDING`, `AGENT_ASSIGNED`, `IN_PROGRESS`, `COMPLETED`, `FAILED`, `CANCELLED`, `VOICEMAIL`, `NO_RESPONSE`, `TRANSFERRED`
- `call_time` (datetime, required)
- `created_at` (datetime, required)
- `updated_at` (datetime, required)
- `call_direction` (enum, optional, nullable)
  - Allowed values: `INBOUND`, `OUTBOUND`
- `phone_number` (string, optional, nullable) — Customer phone number (derived from direction)
- `to_number` (string, optional, nullable)
- `from_number` (string, optional, nullable)
- `call_start_time` (datetime, optional, nullable)
- `call_end_time` (datetime, optional, nullable)
- `call_type` (string, optional, nullable)
- `load_id` (string, optional, nullable)
- `organization_id` (string, optional, nullable)
- `created_by_id` (string, optional, nullable)
- `recording_status` (string, optional, nullable)
- `load_number` (string, optional, nullable)

### PaginationInfo

Standardized pagination information model

- `page` (integer, required) — Current page number (1-based)
- `page_size` (integer, required) — Number of items per page
- `total_count` (integer, required) — Total number of items
- `total_pages` (integer, required) — Total number of pages
- `has_next` (boolean, required) — Whether there's a next page
- `has_prev` (boolean, required) — Whether there's a previous page

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### ValidationErrorLocItems

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "call_00000000-0000-0000-0000-000000000000",
      "status": "SCHEDULED",
      "call_time": "2024-01-15T09:30:00Z",
      "created_at": "2024-01-15T09:30:00Z",
      "updated_at": "2024-01-15T09:30:00Z",
      "call_direction": "INBOUND",
      "phone_number": "string",
      "to_number": "string",
      "from_number": "string",
      "call_start_time": "2024-01-15T09:30:00Z",
      "call_end_time": "2024-01-15T09:30:00Z",
      "call_type": "string",
      "load_id": "load_00000000-0000-0000-0000-000000000000",
      "organization_id": "org_00000000-0000-0000-0000-000000000000",
      "created_by_id": "usr_00000000-0000-0000-0000-000000000000",
      "recording_status": "string",
      "load_number": "string"
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 1,
    "total_count": 1,
    "total_pages": 1,
    "has_next": true,
    "has_prev": true
  }
}
```

**SDK Code**

```python
import requests

url = "https://tryenvoy.ai/api/v1/calls"

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

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

print(response.json())
```

```javascript
const url = 'https://tryenvoy.ai/api/v1/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://tryenvoy.ai/api/v1/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://tryenvoy.ai/api/v1/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://tryenvoy.ai/api/v1/calls")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://tryenvoy.ai/api/v1/calls', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://tryenvoy.ai/api/v1/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://tryenvoy.ai/api/v1/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()
```