Validate Pixel
Changed onChecks whether the Whop pixel is installed for an account, or on one page when you pass a url. Use it before launching an ad to confirm its destination is tracked, or in a setup flow to tell a merchant whether their install is live.
Request
- Base URLhttps://api.whop.com/api/v1
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Account to check. Defaults to the authenticated account.
A page to check for the pixel, such as an ad destination. Events from that page settle the answer; if it hasn't sent any lately, it is fetched and its source read for the pixel and the conversion events wired on it. Omit it to check the account from its events alone.
Example request
{
"account_id": "biz_xxxxxxxxxxxxxx",
"url": "https://shinetime.example/checkout/complete"
}Response
pixel validated
Whether an affiliate tracking SDK was found on the page at url. Supported platforms: Everflow.
False when the event lookup failed, meaning host_events and last_seen_days are incomplete.
Whether the pixel was seen. Without a url this answers for the whole account: true when it has sent events recently. With a url it answers for THAT page only — true when the page is hosted on Whop, when the page itself has sent events recently, or when the pixel was found in its source. Events the account sent from other pages do not make a given url installed.
Event name to whole days since that event last fired, e.g. { "lead": 3 }. Carries events that fired too long ago to count as installed, so you can prompt to re-check rather than report them missing.
Days since the pixel last sent an event, within a 30-day window. null when it hasn't sent one in that window — which includes a pixel installed moments ago.
True when url is hosted on Whop, so no pixel snippet is required.
Whether the page could be loaded. null when the request included no URL, and true when events settled the answer without a fetch.
The URL that was checked, after normalization. null when the request didn't include one.
Example response
{
"firing_data_ok": true,
"host_events": [
"lead"
],
"last_fired_days": {
"lead": 2
},
"last_seen_days": 2,
"page_events": [
"lead"
],
"reachable": true,
"url": "https://shinetime.example/"
}Changes
- info
the security scope
company:basic:readwas added to the endpoint's security schemebearerAuth - info
the security scope
member:journey:readwas removed from the endpoint's security schemebearerAuth
- info
- info
the security scope
company:basic:readwas added to the endpoint's security schemebearerAuth
1 more change in this revision
- info