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

# Campaign Detail

> Fetch a single campaign and its stats

## Endpoint

`GET https://api.apifycloud.io/api/v1/analytics/{appId}/campaigns/{campaignId}`

## Authentication

Bearer token required.

Scope: `campaigns:read`

## Path parameters

* `appId` (UUID, required)
* `campaignId` (UUID, required)

## Response

```json theme={null}
{
  "data": {
    "id": "uuid",
    "name": "string",
    "status": "string",
    "template_name": "string",
    "scheduled_at": "2024-01-01T00:00:00.000Z",
    "completed_at": "2024-01-01T00:00:00.000Z",
    "total_contacts": 0,
    "sent_count": 0,
    "delivered_count": 0,
    "read_count": 0,
    "failed_count": 0,
    "created_at": "2024-01-01T00:00:00.000Z",
    "metadata": {}
  },
  "meta": {
    "timestamp": "2024-01-01T00:00:00.000Z"
  }
}
```

## Errors

* `403 forbidden` unauthorized for app or missing scope
* `404 not_found` campaign not found
* `400 validation_error` invalid path parameters
* `429 rate_limit_exceeded`
* `500 server_error`

## Example

```bash theme={null}
curl "https://api.apifycloud.io/api/v1/analytics/{appId}/campaigns/{campaignId}" \
  -H "Authorization: Bearer {access_token}"
```
