admin
campaigns
Campaign Targeting Preview Admin
Admin-scoped targeting preview.
Used by the internal-mcp preview_campaign_targeting tool (no body → persisted state) and the admin rule editor (body rules → unsaved edit). The org-scoped sibling requires context.organization; MCP authenticates with a service key and has no per-user org, so it needs this admin route.
The omitted-vs-empty rules distinction is preserved: no body forwards no payload (persisted resolution), rules: [] forwards an explicit empty set (everyone), so neither is coerced into the other.
post/admin/campaigns/{campaign_id}/targeting-preview
Request
- Base URLhttps://api-docs.upsmith.com (the document declares no server; this is the origin it was published from)
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
campaign_idstring required
Query parameters
include_independentboolean
apply_regionboolean
Headers
organization-idstring nullable
timezonestring
x-user-idstring nullable
x-actor-emailstring nullable
x-request-sourcestring nullable
x-operation-idstring nullable
x-commit-messagestring nullable
x-confirmation-idstring nullable
x-chat-idstring nullable
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 2 revisions of this API.