Send a message
curl --request POST \
--url https://api.fanvue.com/v1/chats/{userUuid}/message \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '{}'import requests
url = "https://api.fanvue.com/v1/chats/{userUuid}/message"
payload = {}
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({})
};
fetch('https://api.fanvue.com/v1/chats/{userUuid}/message', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"messageUuid": "a1b2c3d4-5e6f-7g8h-9i0j-k1l2m3n4o5p6"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "Too many requests",
"rateLimit": {
"scope": "app",
"layer": "<string>",
"limit": 123,
"windowSeconds": 123,
"retryAfterSeconds": 123,
"docs": "<string>"
}
}Chats
Send a message
Send a message to a user in an existing chat conversation. The message can include text, media attachments, and optional pricing for pay-to-view content, or a single third-party GIF (gif) in place of text and media.
A message whose mediaUuids carry audio media is delivered as a voice note. Upload the
audio through POST /media/uploads first and wait for status: "ready".
POST
/
v1
/
chats
/
{userUuid}
/
message
Send a message
curl --request POST \
--url https://api.fanvue.com/v1/chats/{userUuid}/message \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '{}'import requests
url = "https://api.fanvue.com/v1/chats/{userUuid}/message"
payload = {}
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({})
};
fetch('https://api.fanvue.com/v1/chats/{userUuid}/message', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"messageUuid": "a1b2c3d4-5e6f-7g8h-9i0j-k1l2m3n4o5p6"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<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:chat— Create new chats and send messages. This scope is required for any chat-related actions that modify data.
Authorizations
Scopes
Headers
Body
application/json
Required string length:
1 - 5000Was this page helpful?