> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev.setoo.work/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get attempt statistics

> Retrieve status counters for all attempts in a campaign

Returns count aggregates across all attempt statuses for a specific campaign.

### Path parameters

<ParamField path="campaignId" type="string" required>
  The unique UUID of the campaign.
</ParamField>

<CodeGroup>
  ```bash curl theme={null}
  curl -X GET https://api.agentic-os.com/api/v1/campaigns/770e8400-e29b-41d4-a716-446655440000/attempts/stats \
    -H "Authorization: Bearer $AGENTIC_OS_API_KEY"
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.agentic-os.com/api/v1/campaigns/770e8400-e29b-41d4-a716-446655440000/attempts/stats",
      headers={"Authorization": f"Bearer {API_KEY}"},
  )
  print(response.json())
  ```

  ```javascript Node theme={null}
  const response = await fetch(
    "https://api.agentic-os.com/api/v1/campaigns/770e8400-e29b-41d4-a716-446655440000/attempts/stats",
    {
      method: "GET",
      headers: { Authorization: `Bearer ${API_KEY}` },
    },
  );
  const data = await response.json();
  console.log(data);
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "total": 52,
  "pending": 98,
  "dialing": 4,
  "answered": 32,
  "completed": 32,
  "failed": 2,
  "noAnswer": 10,
  "busy": 4,
  "cancelled": 0
}
```
