Ad Pixels

Update an ad pixel

Changed on

Replace the pixel's access token. Whop checks the new token with the ad platform and resumes deliveries to an errored pixel.

patch/ad_pixels/{id}

Request

  • Base URL: https://api.whop.com/api/v1
  • URL: https://api.whop.com/api/v1/ad_pixels/{id}
  • Auth: HTTP bearer

Request body

access_tokenstring required

An access token that can send events to the pixel on the ad platform. Whop never returns it.

Example request

{
  "access_token": "new-token"
}

Response

Updated

account_idstring required

The business whose claimed campaigns send conversions to this pixel, prefixed biz_.

created_atstring required

When the pixel was added, as an ISO 8601 timestamp.

error_messagestring nullable required

Why the ad platform rejected the last delivery. Null unless status is errored.

external_idstring required

The pixel's ID on the ad platform.

idstring required

Ad pixel ID, prefixed adpx_.

namestring nullable required

The pixel's name on the ad platform. Null when the ad platform returned none.

platform'meta' required

The ad platform the pixel belongs to.

status'active' | 'errored' | 'disabled' required

active receives conversions. errored stopped because the ad platform rejected the access token; update the token to resume. disabled was turned off by Whop.

updated_atstring required

When the pixel was last changed, as an ISO 8601 timestamp.

Example response

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "created_at": "2026-01-01T12:00:00.000Z",
  "external_id": "111222001",
  "id": "adpx_xxxxxxxxxxxxxx",
  "name": "Supplier pixel",
  "platform": "meta",
  "status": "active",
  "updated_at": "2026-01-01T12:00:00.000Z"
}

Changes