Skip to main content
POST
Share a tracking link

Authorizations

Authorization
string
header
required

An API key (onx_sk_…) created in Onlyx under Settings → API & MCP, or an OAuth access token (onx_at_…) issued to a connected app. Send it as Authorization: Bearer <credential>. API keys may also be sent as X-API-Key: <key>.

Headers

Idempotency-Key
string

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).

Required string length: 8 - 64
Pattern: ^[A-Za-z0-9_-]{8,64}$

Path Parameters

creatorId
string
required

The creator id (cre_…).

The tracking link id (trk_…).

Body

application/json
shareEarnings
boolean

Show earnings on the page (true) or hide them (false). Leave it out to keep the current setting (hidden on a new share).

Response

The share page (the existing one when the link is already shared).

createdAt
string | null
required

When the link was first shared.

firstOpenedAt
string | null
required

When it was first opened, or null.

lastOpenedAt
string | null
required

When it was last opened, or null.

opens
integer
required

How many times the page has been opened.

shareEarnings
boolean
required

Whether the page also shows what the link's fans have spent. false by default.

url
string
required

The share page: a public page with this link's clicks, new fans and daily chart, for a promoter or partner. Anyone with the url can open it without signing in. It opens on your workspace's own domain when you have one.

earningsBasis
string
default:net

The unit the page shows earnings in: always net, after the platform's cut — the figure OnlyFans itself shows (earningsNetCents on the link).

Allowed value: "net"