Skip to main content
POST
/
v2
/
access
/
promotions
/
trial-links
Create trial link
curl --request POST \
  --url https://api.ofauth.com/v2/access/promotions/trial-links \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --header 'x-connection-id: <api-key>' \
  --data '
{
  "name": "<string>",
  "durationDays": 1,
  "offer": {
    "limit": 0,
    "expirationDays": 0
  }
}
'
{
  "id": 123,
  "trialLinkName": "<string>",
  "url": "<string>",
  "subscribeDays": 123,
  "subscribeCounts": 123,
  "claimCounts": 123,
  "clicksCounts": 123,
  "expiredAt": "<string>",
  "createdAt": "<string>",
  "isFinished": true,
  "user": null,
  "sharedWith": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.ofauth.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

apiKey
string
header
required

Your OFAuth API key for authenticating requests.

x-connection-id
string
header
required

Requires a connection via the x-connection-id header.

Body

application/json
name
string
required

Trial link name shown in OnlyFans.

Required string length: 1 - 64
durationDays
enum<integer>
required

Free trial duration in days. Options are 1, 3, 7, 14, 30, 90, 180, or 360 days; 30 means 1 month. Compact strings are accepted: 1d, 3d, 7d, 14d, 30d, 90d, 180d, 360d, 1w, 2w, 1m, 3m, 6m, or 12m.

Available options:
1,
3,
7,
14,
30,
90,
180,
360
offer
object

Offer limit and expiration for the trial link.

Response

Successful response

id
number
required
url
string
required
subscribeDays
number
required
subscribeCounts
number
required
claimCounts
number
required
clicksCounts
number
required
expiredAt
string | null
required
createdAt
string
required
isFinished
boolean
required
user
unknown
sharedWith
string | null