Get a creator's ad tracking
curl --request GET \
--url https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"botUsername": "candy_pay_bot",
"configured": true,
"creatorId": "cre_4d1a541312154bfe9cd9",
"enabled": true,
"leadEvent": "Lead",
"leadEvents": [
"Lead",
"Subscribe",
"CompleteRegistration",
"Contact"
],
"pixelId": "123456789012345",
"telegramUsername": "candyyyxxx",
"testEventCode": "TEST12345",
"tokenSaved": true
}Get a creator's ad tracking
Returns a Telegram creator’s Meta Pixel + Conversions API settings: the Pixel ID, whether an access token is stored (the token itself is never returned), the Test Events code, the lead event, and her Telegram username and Stars bot, which ad links need. A creator on another platform answers an empty, unconfigured setting.
Scope: requires links:read.
Rate limit: the general limit of 120 requests per 60 seconds per credential.
GET
/
v1
/
creators
/
{creatorId}
/
ad-tracking
Get a creator's ad tracking
curl --request GET \
--url https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/ad-tracking', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"botUsername": "candy_pay_bot",
"configured": true,
"creatorId": "cre_4d1a541312154bfe9cd9",
"enabled": true,
"leadEvent": "Lead",
"leadEvents": [
"Lead",
"Subscribe",
"CompleteRegistration",
"Contact"
],
"pixelId": "123456789012345",
"telegramUsername": "candyyyxxx",
"testEventCode": "TEST12345",
"tokenSaved": true
}Authorizations
Response
Her Meta Pixel settings (the access token is never returned).