Check Pixel
Sends one check to the platform with the stored token, same as Check in Tools -> Pixels. The check is queued: the answer is the pixel as it is now, and health, health_error and health_checked_at change within a minute. Read the pixel list to see the outcome.
At most one check a minute per pixel: a second call inside that minute answers Checked less than a minute ago, showing the latest result.
Meta: the check is a test event, visible in Events Manager -> Test Events when the pixel has a test event code. TikTok: a check needs a test event code on the pixel; without one health stays unknown until a campaign sends its first event.
Errors (status: "error", HTTP 200):
404Pixel not found: unknown id or not your pixel.422pixel_id is required.403Access denied: missing / unknown key, or the account is not an active partner.429Rate limit exceeded (30 writes per minute per key, see theRetry-Afterheader).503Service is temporarily unavailable: the platform did not answer in time. The action may still have been applied, read the pixel list before repeating it.
How to read the outcome
The check is queued. The answer of this call is the pixel as it is right now; the outcome lands within a minute. Read it from the pixel list:Checked less than a minute ago, showing the latest result.
What the platform receives
health too.
Check before you run ads
- Take the code from the platform’s Test Events tool and save it with update as
test_event_code. - Call this endpoint and watch the test tab of the platform: the event appears within a minute.
- Clear the code with
"test_event_code": ""before the ads go live.
Errors
Authorizations
API key from the partner cabinet, Tools -> API (https://partners.onlytraffic.com/tools/api): up to 5 named keys per account, each Full or Read-only, ot_partners_ prefix, shown once at creation. Raw value or Bearer form. Read-only keys cannot call the POST endpoints (403 This API key is read-only); expired or revoked keys get 403 Error! Access denied.