curl --request POST \
--url https://api.onlyx.ai/v1/creators/{creatorId}/tracking-links/{linkId}/share \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"shareEarnings": false
}
'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/tracking-links/{linkId}/share"
payload = { "shareEarnings": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({shareEarnings: false})
};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/tracking-links/{linkId}/share', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"createdAt": "2026-10-31T17:58:40.000Z",
"earningsBasis": "net",
"firstOpenedAt": "2026-10-31T18:02:11.000Z",
"lastOpenedAt": "2026-10-31T21:40:05.000Z",
"opens": 3,
"shareEarnings": false,
"url": "https://app.onlyx.ai/s/T_5dpr_ti1ejOjhYKmXGZTv5gMpWGfhayTQ6XmDy_KE"
}Share a tracking link
Creates the link’s share page, the same page as the Share button in the app, and returns its url: a public page with the link’s clicks, new fans and daily chart that a promoter can open without an account. Earnings are hidden unless you send shareEarnings: true. Sharing a link that is already shared returns the SAME url (so the promoter’s link keeps working) and only changes shareEarnings if you send it. Stop sharing with DELETE. Treat the url like a password you are happy to give the promoter: anyone who has it can open the page. The response is never cached (Cache-Control: no-store).
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}/tracking-links/{linkId}/share \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"shareEarnings": false
}
'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/tracking-links/{linkId}/share"
payload = { "shareEarnings": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({shareEarnings: false})
};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/tracking-links/{linkId}/share', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"createdAt": "2026-10-31T17:58:40.000Z",
"earningsBasis": "net",
"firstOpenedAt": "2026-10-31T18:02:11.000Z",
"lastOpenedAt": "2026-10-31T21:40:05.000Z",
"opens": 3,
"shareEarnings": false,
"url": "https://app.onlyx.ai/s/T_5dpr_ti1ejOjhYKmXGZTv5gMpWGfhayTQ6XmDy_KE"
}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}$Path Parameters
Body
Response
The share page (the existing one when the link is already shared).