Get online statuses for multiple users
curl --request POST \
--url https://api.fanvue.com/v1/chats/statuses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"userUuids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.fanvue.com/v1/chats/statuses"
payload = { "userUuids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
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({userUuids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://api.fanvue.com/v1/chats/statuses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"c3d4e5f6-7g8h-9i0j-1k2l-m3n4o5p6q7r8": {
"isOnline": true,
"lastSeenAt": "2024-01-15T00:00:00.000Z"
},
"b2c3d4e5-6f7g-8h9i-0j1k-l2m3n4o5p6q7": {
"isOnline": false,
"lastSeenAt": "2024-01-14T00:00:00.000Z"
},
"c3d4e5f6-7890-1234-5678-9abcdef01234": {
"isOnline": false,
"lastSeenAt": null
}
}{
"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
Get online statuses for multiple users
Returns the online status and last seen timestamp for multiple users in a single request.
This endpoint is optimized for batch lookups when you need to check the online status of multiple chat counterparts at once.
Maximum 100 user UUIDs per request. Users who have disabled online visibility, and users you no longer have a live relationship with, always appear as offline with no last seen timestamp. An expired subscriber is only hidden when no other relationship survives — an active subscription, or a follow in either direction, keeps their presence visible.
POST
/
v1
/
chats
/
statuses
Get online statuses for multiple users
curl --request POST \
--url https://api.fanvue.com/v1/chats/statuses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"userUuids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.fanvue.com/v1/chats/statuses"
payload = { "userUuids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
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({userUuids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://api.fanvue.com/v1/chats/statuses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"c3d4e5f6-7g8h-9i0j-1k2l-m3n4o5p6q7r8": {
"isOnline": true,
"lastSeenAt": "2024-01-15T00:00:00.000Z"
},
"b2c3d4e5-6f7g-8h9i-0j1k-l2m3n4o5p6q7": {
"isOnline": false,
"lastSeenAt": "2024-01-14T00:00:00.000Z"
},
"c3d4e5f6-7890-1234-5678-9abcdef01234": {
"isOnline": false,
"lastSeenAt": null
}
}{
"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
read:chat— Read chat conversations, messages, and chat-related data. This includes viewing chat lists and message history.
Authorizations
Scopes
Headers
Body
application/json
Was this page helpful?