Grant a consumer access to a media item
curl --request POST \
--url https://api.fanvue.com/v1/media/{uuid}/grant \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"consumerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "spin_the_wheel_reward",
"sourceRef": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
'import requests
url = "https://api.fanvue.com/v1/media/{uuid}/grant"
payload = {
"consumerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "spin_the_wheel_reward",
"sourceRef": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
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({
consumerId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
source: 'spin_the_wheel_reward',
sourceRef: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'
})
};
fetch('https://api.fanvue.com/v1/media/{uuid}/grant', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"entitlementId": "f1e2d3c4-b5a6-9870-fedc-ba0987654321",
"status": "granted"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "<string>"
}Media
Grant a consumer access to a media item
Grant a specific consumer access to a piece of media owned by the authenticated creator. The grant is idempotent: repeated calls with the same parameters return the existing entitlement.
POST
/
v1
/
media
/
{uuid}
/
grant
Grant a consumer access to a media item
curl --request POST \
--url https://api.fanvue.com/v1/media/{uuid}/grant \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"consumerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "spin_the_wheel_reward",
"sourceRef": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
'import requests
url = "https://api.fanvue.com/v1/media/{uuid}/grant"
payload = {
"consumerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "spin_the_wheel_reward",
"sourceRef": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
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({
consumerId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
source: 'spin_the_wheel_reward',
sourceRef: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'
})
};
fetch('https://api.fanvue.com/v1/media/{uuid}/grant', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"entitlementId": "f1e2d3c4-b5a6-9870-fedc-ba0987654321",
"status": "granted"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "<string>"
}Required scope
write:media— Upload, modify, and manage media files and content assets. Also required for vault folder management.
Authorizations
OAuth 2.0 access token, presented as a JWT bearer token in the Authorization header. Obtain a token via the authorization-code flow; the scopes granted to the token determine which operations it may call.
Headers
API version to use for the request
Example:
"2025-06-26"
Path Parameters
Body
application/json
UUID of the consumer to grant media access to
Identifier for the granting application or reason (e.g. spin_the_wheel_reward)
Required string length:
1 - 100Pattern:
^[a-z0-9_]+$Example:
"spin_the_wheel_reward"
Unique identifier within the source, used for idempotency (e.g. spin attempt UUID)
Required string length:
1 - 255Example:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Was this page helpful?