---
title: "Campaign Targeting Preview Customers"
method: POST
path: "/campaigns/{campaign_id}/targeting-preview/customers"
tags: ["authenticated", "campaigns"]
---

# Campaign Targeting Preview Customers

`POST /campaigns/{campaign_id}/targeting-preview/customers`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/campaigns/{campaign_id}/targeting-preview/customers`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Page through the customers the given rule set would target.

Same body semantics as ``targeting-preview``: pass ``rules`` to evaluate
the builder's unsaved state, omit it for the campaign's persisted rules.
Org-scoped like the preview proxy.

## Path parameters

- `campaign_id` string, required

## Query parameters

- `limit` integer
- `offset` integer

## Headers

- `organization-id` string, nullable
- `x-user-id` string, nullable
- `timezone` string
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Request body

- CampaignTargetingPreviewBody: Optional body. Omit ``rules`` to evaluate the campaign's persisted state.
  - `rules` object[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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