Create a free trial link for a creator
curl --request POST \
--url https://api.fanvue.com/creators/{creatorUserUuid}/free-trial-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"maxUsages": 2,
"expiresDays": 2,
"name": "<string>",
"trialDurationDays": 2
}
'import requests
url = "https://api.fanvue.com/creators/{creatorUserUuid}/free-trial-links"
payload = {
"maxUsages": 2,
"expiresDays": 2,
"name": "<string>",
"trialDurationDays": 2
}
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({maxUsages: 2, expiresDays: 2, name: '<string>', trialDurationDays: 2})
};
fetch('https://api.fanvue.com/creators/{creatorUserUuid}/free-trial-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"uuid": "f6a7b8c9-0d1e-4f2a-b3c4-d5e6f7a8b9c0",
"url": "https://www.fanvue.com/creatorhandle?free_trial=f6a7b8c9-0d1e-4f2a-b3c4-d5e6f7a8b9c0",
"maxUsages": 50,
"name": "Summer promo",
"usedCount": 4,
"trialDurationDays": 7,
"expiresAt": "2024-02-15T00:00:00.000Z",
"createdAt": "2024-01-15T00:00:00.000Z"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "Too many requests",
"rateLimit": {
"scope": "app",
"layer": "<string>",
"limit": 123,
"windowSeconds": 123,
"retryAfterSeconds": 123,
"docs": "<string>"
}
}Creator free trial links
Create a free trial link for a creator
Create a shareable link on behalf of the specified creator that lets fans start a free trial of their subscription.
POST
/
creators
/
{creatorUserUuid}
/
free-trial-links
Create a free trial link for a creator
curl --request POST \
--url https://api.fanvue.com/creators/{creatorUserUuid}/free-trial-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"maxUsages": 2,
"expiresDays": 2,
"name": "<string>",
"trialDurationDays": 2
}
'import requests
url = "https://api.fanvue.com/creators/{creatorUserUuid}/free-trial-links"
payload = {
"maxUsages": 2,
"expiresDays": 2,
"name": "<string>",
"trialDurationDays": 2
}
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({maxUsages: 2, expiresDays: 2, name: '<string>', trialDurationDays: 2})
};
fetch('https://api.fanvue.com/creators/{creatorUserUuid}/free-trial-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"uuid": "f6a7b8c9-0d1e-4f2a-b3c4-d5e6f7a8b9c0",
"url": "https://www.fanvue.com/creatorhandle?free_trial=f6a7b8c9-0d1e-4f2a-b3c4-d5e6f7a8b9c0",
"maxUsages": 50,
"name": "Summer promo",
"usedCount": 4,
"trialDurationDays": 7,
"expiresAt": "2024-02-15T00:00:00.000Z",
"createdAt": "2024-01-15T00:00:00.000Z"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "Too many requests",
"rateLimit": {
"scope": "app",
"layer": "<string>",
"limit": 123,
"windowSeconds": 123,
"retryAfterSeconds": 123,
"docs": "<string>"
}
}Required scope
write:creator— Modify creator profiles, settings, and creator-specific data.
Authorizations
Headers
Body
application/json
Response
Free trial link created successfully
Was this page helpful?