> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://doc.youratlas.com/v1/llms.txt
> - v2: https://doc.youratlas.com/v2/llms.txt

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

# Get dashboard statistics

GET https://api.youratlas.com/v1/api/dashboard/dashboard-stats

Returns the headline numbers for the dashboard: totals for outbound, inbound and web calls, top campaigns and counts of agents, contacts, knowledge files and actions. With no date range it covers the account's entire history and can time out on large accounts, so pass `startDate` and `endDate`. For the figures on the dashboard performance section, use `GET /dashboard/roi-stats`.

Reference: https://doc.youratlas.com/api-reference/atlas-api/dashboard/get-dashboard-stats

## Authentication

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

## Request

### Query parameters

- `startDate` (date, optional) — First day to include, `YYYY-MM-DD` (UTC).
- `endDate` (date, optional) — Last day to include, `YYYY-MM-DD` (UTC).

## Response

### 200

Successful response

- `totals` (DashboardStatsTotals, optional)
- `topCampaigns` (list of DashboardStatsTopCampaignsItems, optional)
- `elements` (DashboardStatsElements, optional)

## Errors

### 401 Unauthorized Error

Invalid or missing API key

- `error` (ErrorError, optional)

### 500 Internal Server Error

Internal server error

- `error` (ErrorError, optional)

## Types

### DashboardStatsTotals

- `Outbound` (CategoryStats, optional)
- `Inbound` (CategoryStats, optional)
- `Web` (CategoryStats, optional)

### DashboardStatsTopCampaignsItems

- `campaignId` (string, optional)
- `calls` (double, optional)
- `connectionRate` (double, optional)

### DashboardStatsElements

- `agents` (integer, optional)
- `contacts` (integer, optional)
- `knowledgeFiles` (integer, optional)
- `actions` (integer, optional)

### ErrorError

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

### CategoryStats

- `calls` (integer, optional)
- `durationMs` (integer, optional)
- `connectionRate` (double, optional)
- `successCalls` (integer, optional)
- `bookingsMade` (integer, optional)
- `transfersMade` (integer, optional)
- `lastCallDate` (string, optional)

## Examples

**Response**

```json
{
  "totals": {
    "Outbound": {
      "calls": 1,
      "durationMs": 1,
      "connectionRate": 0.5,
      "successCalls": 1,
      "bookingsMade": 1,
      "transfersMade": 1,
      "lastCallDate": "2026-03-04T15:30:00Z"
    },
    "Inbound": {
      "calls": 1,
      "durationMs": 1,
      "connectionRate": 0.5,
      "successCalls": 1,
      "bookingsMade": 1,
      "transfersMade": 1,
      "lastCallDate": "2026-03-04T15:30:00Z"
    },
    "Web": {
      "calls": 1,
      "durationMs": 1,
      "connectionRate": 0.5,
      "successCalls": 1,
      "bookingsMade": 1,
      "transfersMade": 1,
      "lastCallDate": "2026-03-04T15:30:00Z"
    }
  },
  "topCampaigns": [
    {
      "campaignId": "3f2a9c1e-5b7d-4e8a-9c21-0a1b2c3d4e5f",
      "calls": 0.5,
      "connectionRate": 0.5
    }
  ],
  "elements": {
    "agents": 1,
    "contacts": 1,
    "knowledgeFiles": 1,
    "actions": 1
  }
}
```

**SDK Code**

```python Dashboard_getDashboardStats_example
import requests

url = "https://api.youratlas.com/v1/api/dashboard/dashboard-stats"

querystring = {"endDate":"2026-03-31","startDate":"2026-03-01"}

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

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

print(response.json())
```

```javascript Dashboard_getDashboardStats_example
const url = 'https://api.youratlas.com/v1/api/dashboard/dashboard-stats?endDate=2026-03-31&startDate=2026-03-01';
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 Dashboard_getDashboardStats_example
package main

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

func main() {

	url := "https://api.youratlas.com/v1/api/dashboard/dashboard-stats?endDate=2026-03-31&startDate=2026-03-01"

	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 Dashboard_getDashboardStats_example
require 'uri'
require 'net/http'

url = URI("https://api.youratlas.com/v1/api/dashboard/dashboard-stats?endDate=2026-03-31&startDate=2026-03-01")

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 Dashboard_getDashboardStats_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.youratlas.com/v1/api/dashboard/dashboard-stats?endDate=2026-03-31&startDate=2026-03-01")
  .header("api-key", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.youratlas.com/v1/api/dashboard/dashboard-stats?endDate=2026-03-31&startDate=2026-03-01', [
  'headers' => [
    'api-key' => '<apiKey>',
  ],
]);

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

```csharp Dashboard_getDashboardStats_example
using RestSharp;

var client = new RestClient("https://api.youratlas.com/v1/api/dashboard/dashboard-stats?endDate=2026-03-31&startDate=2026-03-01");
var request = new RestRequest(Method.GET);
request.AddHeader("api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Dashboard_getDashboardStats_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.youratlas.com/v1/api/dashboard/dashboard-stats?endDate=2026-03-31&startDate=2026-03-01")! 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()
```