---
title: "Get campaign analytics"
method: GET
path: "/campaigns/{id}/analytics"
tags: ["Campaigns"]
---

# Get campaign analytics

`GET /campaigns/{id}/analytics`

## Request

- Base URL: `https://api.textla.com/v1`
- URL: `https://api.textla.com/v1/campaigns/{id}/analytics`
- Auth: HTTP bearer

Returns the campaign's analytics: outbound delivered and failed, inbound replies, opt-outs and a daily breakdown, covering the campaign's lifetime from its creation to today. It is 404 when the account has no campaign with the ID.

## Path parameters

- `id` string, required

## Response `200`

OK

- CampaignAnalytics
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `daily` DailyAnalytics[], nullable, required
    - `date` string, required
    - `error_counts` object, required
    - `inbound_success_count` integer, required
    - `opt_out_count` integer, required
    - `outbound_error_count` integer, required
    - `outbound_success_count` integer, required
  - `end_date` string, required
  - `inbound_count` integer, required
  - `inbound_error_count` integer, required
  - `inbound_success_count` integer, required
  - `opt_out_count` integer, required
  - `outbound_count` integer, required
  - `outbound_error_count` integer, required
  - `outbound_success_count` integer, required
  - `start_date` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `412`: Precondition Failed
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `501`: Not Implemented
- `502`: Bad Gateway
- `503`: Service Unavailable
- `504`: Gateway Timeout

---

[API](https://skmtc.dev/textla/apis/textla-api.md) - [All operations](https://skmtc.dev/textla/apis/textla-api/llms.txt) - [OpenAPI document](https://skmtc.dev/textla/apis/textla-api/revisions/473f03350bc1?raw)
