Get list of template messages (cursor-paginated)
curl --request GET \
--url https://api.fanvue.com/v1/chats/templates \
--header 'Authorization: Bearer <token>' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>'import requests
url = "https://api.fanvue.com/v1/chats/templates"
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.fanvue.com/v1/chats/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "Subscriber welcome",
"text": "Hey! Thanks for subscribing! Check out my latest exclusive content 🔥",
"price": 999,
"folderUuid": "b0a1c2d3-e4f5-6789-abcd-ef0123456789",
"folderName": "Welcome Messages",
"mediaUuids": [
"7c9e6679-7425-40de-944b-e07fc1f90ae7"
],
"mediaPreviewUuid": "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
},
{
"uuid": "123e4567-e89b-12d3-a456-426614174001",
"name": null,
"text": "Happy Friday! Here's something special just for you 💝",
"price": null,
"folderUuid": "c1b2a3d4-f5e6-7890-bcde-f01234567890",
"folderName": "Promotions",
"mediaUuids": [],
"mediaPreviewUuid": null
}
],
"nextCursor": "k0FQ1m9yZXN0aWdpb3VzLW9wYXF1ZS1jdXJzb3I",
"total": null
}{
"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>"
}
}Templates
Get list of template messages (cursor-paginated)
Returns a cursor-paginated list of template messages. Optionally filter by folder name using case-insensitive partial matching. Page with the opaque nextCursor from the previous response. total is not computed for this list and is always null.
GET
/
v1
/
chats
/
templates
Get list of template messages (cursor-paginated)
curl --request GET \
--url https://api.fanvue.com/v1/chats/templates \
--header 'Authorization: Bearer <token>' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>'import requests
url = "https://api.fanvue.com/v1/chats/templates"
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.fanvue.com/v1/chats/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "Subscriber welcome",
"text": "Hey! Thanks for subscribing! Check out my latest exclusive content 🔥",
"price": 999,
"folderUuid": "b0a1c2d3-e4f5-6789-abcd-ef0123456789",
"folderName": "Welcome Messages",
"mediaUuids": [
"7c9e6679-7425-40de-944b-e07fc1f90ae7"
],
"mediaPreviewUuid": "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
},
{
"uuid": "123e4567-e89b-12d3-a456-426614174001",
"name": null,
"text": "Happy Friday! Here's something special just for you 💝",
"price": null,
"folderUuid": "c1b2a3d4-f5e6-7890-bcde-f01234567890",
"folderName": "Promotions",
"mediaUuids": [],
"mediaPreviewUuid": null
}
],
"nextCursor": "k0FQ1m9yZXN0aWdpb3VzLW9wYXF1ZS1jdXJzb3I",
"total": null
}{
"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
read:chat— Read chat conversations, messages, and chat-related data. This includes viewing chat lists and message history.
Authorizations
Scopes
Headers
Query Parameters
Response
List of template messages
Was this page helpful?