---
title: "Campaign Targeting"
method: GET
path: "/campaigns/targeting/{agent_v2_id}"
tags: ["authenticated", "campaigns"]
---

# Campaign Targeting

`GET /campaigns/targeting/{agent_v2_id}`

## 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/targeting/{agent_v2_id}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Return targeting rules and funnel data for a campaign variant.

By default uses the first campaign for the agent (oldest by created_at).
Pass ``campaign_id`` (the campaign UUID) to load a specific variant —
used by the variant selector on the agent detail page so users can edit
each variant's rules independently.

Loads campaign_rule rows for that campaign, resolving org-level defaults,
and the latest targeting_snapshot for funnel step data.

## Path parameters

- `agent_v2_id` string, required

## Query parameters

- `campaign_id` string, nullable

## 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

## 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/86e2c2bd93af?raw)
