Pixels
Save an organization pixel
Saves the Conversions API access token and/or default flag for
pixelId. The same call creates the pixel or rotates its token, and
both return 200:
- No Meta pixel yet: the pixel is saved (
accessTokenrequired). pixelIdmatches a Meta pixel the organization already has: its access token is replaced whenaccessTokenis sent.- A different Meta pixel for the same organization: the new pixel is saved alongside existing ones.
- The pixel is configured by another organization:
409 meta_pixel_conflict. - The access token is already used with another pixel:
400 invalid_request. platformother thanmeta:400 invalid_request.- Optional
isDefaultsets or clears the org default for Meta. At least one ofaccessTokenorisDefaultis required.
The response never includes the access token. Use
POST /v1/pixels/{pixelId}/test-events to check the pixel and token.
Requires pixels:write. Organizations without custom pixels enabled
get 403 custom_pixel_not_enabled. Does not require Idempotency-Key;
repeating the same request is safe.
Auth: Accepts API key or OAuth Bearer (pixels:write).
PUT
Save an organization pixel
Authorizations
Body
application/json