---
title: "Campaign Audience Assignment Counts"
method: GET
path: "/v2/campaigns/{id}/assignment-counts"
tags: ["Campaigns V2"]
---

# Campaign Audience Assignment Counts

`GET /v2/campaigns/{id}/assignment-counts`

Returns observed distinct paywall viewers per current treatment variant, grouped by audience and environment. Audience totals sum variant counts and may count a viewer more than once. Holdouts and assignments without a recorded view are excluded. Requires both campaigns:read and charts:read scopes.

## Path parameters

- `id` string, required

## Query parameters

- `environment` 'PRODUCTION' | 'SANDBOX'

## Response `200`

Observed distinct paywall viewers per current treatment variant. Audience totals sum variant counts and may count the same viewer more than once. Holdouts and assignments without a recorded view are excluded.

- object — Observed distinct paywall viewers per current treatment variant. Audience totals sum variant counts and may count the same viewer more than once. Holdouts and assignments without a recorded view are excluded.
  - `object` 'campaign_assignment_counts', required
  - `environment` 'PRODUCTION' | 'SANDBOX', required
  - `audiences` object[], required
    - `audience_id` string, required
    - `users` number, required
    - `variants` object[], required
      - `variant_id` string, required
      - `users` number, required

## Other responses

- `400` — The request did not match the expected schema | The request was invalid or malformed
- `401` — No API key was provided in the request | The API key does not have a valid format | The API key is invalid or has been revoked | An error occurred while validating the API key | The session cookie is invalid or expired
- `403` — The API key does not have permission to perform this action
- `404` — The requested resource was not found
- `429` — Too many requests have been made in a short period
- `500` — An unexpected error occurred on the server

## Changes

- **2026-09-30** `bfb85c07a3d3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/superwall/apis/superwall-api-v2/changes/v2/campaigns/:id/assignment-counts/get.md)

---

[API](https://skmtc.dev/superwall/apis/superwall-api-v2.md) · [All operations](https://skmtc.dev/superwall/apis/superwall-api-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/superwall/apis/superwall-api-v2/revisions/bfb85c07a3d3?raw)
