Skip to main content
GET
Get campaign performance

Authorizations

Authorization
string
header
required

Send either an API token or an OAuth access token as Authorization: Bearer <token>. See the Authentication page for details.

Headers

Privy-Account-Id
string

Target a subaccount instead of the main connected account. Pass a subaccount id from get_account's subaccounts list. Only direct subaccounts of the connected account are reachable — omit this for the main account itself.

Path Parameters

campaign_id
string
required

The campaign's unique identifier (returned as campaign_id in report responses and id in campaign responses). Ids are opaque public strings — a numeric id from a Privy dashboard URL is not a valid API id and will 404; list campaigns and match by title instead.

Query Parameters

period
enum<string>

Scope the funnel to a date range, resolved in the account's time zone. Pass custom together with start_date and end_date. Omit entirely for the campaign's lifetime funnel (the default).

Available options:
last_7_days,
last_30_days,
last_90_days,
this_month,
last_month,
custom
start_date
string<date>

Inclusive start of a custom period (ISO 8601 date). Required when period=custom, ignored otherwise.

end_date
string<date>

Inclusive end of a custom period (ISO 8601 date). Required when period=custom, ignored otherwise. Custom periods are capped at 366 days.

Response

The campaign's engagement funnel — lifetime, or scoped to the requested period.

data
object