curl --request POST \
--url https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": null,
"eventsReceived": 1,
"fbtraceId": "AbCdEf123",
"status": "sent",
"test": true
}Send a test event to Meta
Sends one PageView to her pixel right now, with the saved Test Events code, and returns Meta’s answer: sent (look under Test Events in Events Manager) or failed with Meta’s reason. Every call sends a new event (an Idempotency-Key is checked, not replayed). The event is also listed in GET …/ad-tracking/events.
Scope: requires links:write.
Rate limit: the general limit of 120 requests per 60 seconds per credential.
Idempotency: repeating this call is safe on its own; an Idempotency-Key is accepted and checked, but no response is stored for replay.
curl --request POST \
--url https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": null,
"eventsReceived": 1,
"fbtraceId": "AbCdEf123",
"status": "sent",
"test": true
}Authorizations
Headers
Optional and not needed: this call is idempotent on its own, so repeating it is always safe and no response is stored for replay. A key you send is still checked (8 to 64 letters, digits, - or _; a malformed one is 400 VALIDATION_ERROR).
8 - 64^[A-Za-z0-9_-]{8,64}$Response
What Meta answered.