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

# Get call records

GET https://api.youratlas.com/v1/api/call

Reference: https://docs.youratlas.com/api-reference/atlas-api/calls/get-call-records

## Authentication

- `api-key` header (required) — Your Atlas API key. Get it from the Atlas Portal under Settings > API Keys.

## Request

### Query parameters

- `campaignId` (string, optional)
- `assistantId` (string, optional)
- `callType` (string, optional)
- `campaignType` (string, optional)
- `successResult` (string, optional)
- `startDate` (datetime, optional)
- `endDate` (datetime, optional)
- `customerPhoneNumber` (string, optional)

## Response

### 200

Successful response

- `odata.metadata` (string, optional)
- `value` (list of CallRecordBasic, optional)

## Errors

### 400 Bad Request Error

Bad request

- `error` (ErrorError, optional)

### 500 Internal Server Error

Internal server error

- `error` (ErrorError, optional)

## Types

### CallRecordBasic

- `odata.etag` (string, optional)
- `PartitionKey` (string, optional)
- `RowKey` (string, optional)
- `Timestamp` (datetime, optional)
- `AssistantId` (string, optional)
- `CallType` (enum, optional) — 1 = Inbound, 2 = Outbound
  - Allowed values: `1`, `2`
- `CampaignId` (string, optional)
- `CampaignType` (enum, optional) — 0 = voiceBubble, 1 = call
  - Allowed values: `0`, `1`
- `CustomerName` (string, optional)
- `CustomerPhoneNumber` (string, optional)
- `DurationMs` (integer, optional)
- `EndedReason` (enum, optional) — Reason the call ended. Common values grouped by category: **Agent-initiated outcomes:** `assistant-ended-call` — Agent ended the call normally. `assistant-ended-call-after-message-spoken` — Agent delivered its final message. `assistant-forwarded-call` — Call was transferred to another number. `assistant-said-end-call-phrase` — Agent detected a goodbye phrase. **Customer actions:** `customer-ended-call` — Customer hung up. `customer-busy` — Line was busy. `customer-did-not-answer` — No answer from the customer. **Technical / connection issues:** `phone-call-provider-closed-websocket` — Connection lost. `twilio-failed-to-connect-call` — Twilio failed to connect. `twilio-reported-customer-misdialed` — Invalid phone number. `server-shutdown` — Voice service replica was drained (e.g. for a deploy or scale-down) and the call did not complete before the drain deadline. **Duration / timeout:** `exceeded-max-duration` — Call hit the maximum duration limit. `silence-timed-out` — Call ended after extended silence (default 30s). `voicemail` — Call was routed to voicemail. **Other:** `manually-canceled` — Call was manually canceled. `pipeline-error` — AI processing error occurred.
  - Allowed values: `assistant-ended-call`, `assistant-ended-call-after-message-spoken`, `assistant-forwarded-call`, `assistant-said-end-call-phrase`, `assistant-ended-call-with-hangup-task`, `customer-ended-call`, `customer-busy`, `customer-did-not-answer`, `phone-call-provider-closed-websocket`, `twilio-failed-to-connect-call`, `twilio-reported-customer-misdialed`, `server-shutdown`, `exceeded-max-duration`, `silence-timed-out`, `voicemail`, `manually-canceled`
- `Status` (enum, optional)
  - Allowed values: `Accepted`, `Rejected`, `Paused`, `Ongoing`, `Missed`
- `SuccessResult` (enum, optional) — 0 = Failed, 1 = Success
  - Allowed values: `0`, `1`
- `BookedAppointment` (integer, optional)

### ErrorError

- `message` (string, optional)
- `code` (string, optional)
- `requestId` (string, optional)

## Examples

**Response**

```json
{
  "odata.metadata": "string",
  "value": [
    {
      "odata.etag": "string",
      "PartitionKey": "string",
      "RowKey": "string",
      "Timestamp": "2024-01-15T09:30:00Z",
      "AssistantId": "string",
      "CallType": 1,
      "CampaignId": "string",
      "CampaignType": 0,
      "CustomerName": "string",
      "CustomerPhoneNumber": "string",
      "DurationMs": 1,
      "EndedReason": "assistant-ended-call",
      "Status": "Accepted",
      "SuccessResult": 0,
      "BookedAppointment": 1
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.youratlas.com/v1/api/call"

headers = {"api-key": "<apiKey>"}

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

print(response.json())
```

```javascript
const url = 'https://api.youratlas.com/v1/api/call';
const options = {method: 'GET', headers: {'api-key': '<apiKey>'}};

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.youratlas.com/v1/api/call"

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

	req.Header.Add("api-key", "<apiKey>")

	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.youratlas.com/v1/api/call")

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

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

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.youratlas.com/v1/api/call")
  .header("api-key", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.youratlas.com/v1/api/call', [
  'headers' => [
    'api-key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.youratlas.com/v1/api/call");
var request = new RestRequest(Method.GET);
request.AddHeader("api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["api-key": "<apiKey>"]

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