Chats
List Chats
Get the list of chats for an Account.
https://v1.apifansly.com
GET
/api/fansly/{account_id}/chats
Get Started
All requests to the Fansly API require an API Key. See the Authentication page for details.
curl -X GET "https://v1.apifansly.com/api/fansly/{account_id}/chats" \
-H "x-api-key: YOUR_API_KEY"fetch("https://v1.apifansly.com/api/fansly/{account_id}/chats", {
method: "GET",
headers: {
"x-api-key": "YOUR_API_KEY"
}
})import requests
url = "https://v1.apifansly.com/api/fansly/{account_id}/chats"
headers = {
"x-api-key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://v1.apifansly.com/api/fansly/{account_id}/chats"))
.header("x-api-key", "YOUR_API_KEY")
.GET()
.build();
client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
.thenApply(HttpResponse::body)
.thenAccept(System.out::println)
.join();using System.Net.Http;
using System.Threading.Tasks;
var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var response = await client.GetAsync("https://v1.apifansly.com/api/fansly/{account_id}/chats");
var responseString = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseString);package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://v1.apifansly.com/api/fansly/{account_id}/chats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}Path Parameters
account_id*
stringThe unique identifier for the connected account.
Response
{
"statusCode": 200,
"message": "Success",
"data": {
"status_code": 200,
"data": {
"success": true,
"response": {
"data": [
{
"account_id": "xxxxxxxxxxxxxxxx",
"groupId": "868324xxxxxxxxx",
"partnerAccountId": "542982347151126528",
"partnerUsername": "yeyeβ‘",
"flags": 1xxx,
"unreadCount": 0,
"subscriptionTierId": null,
"lastMessageId": "8691225xxxxxxxxx",
"lastUnreadMessageId": null
},
{
"account_id": "xxxxxxxxx",
"groupId": "86694xxxxxxxxx",
"partnerAccountId": "8544787xxxxxxxxx",
"partnerUsername": "bunny_lofi",
"flags": 10,
"unreadCount": 0,
"subscriptionTierId": null,
"lastMessageId": "868398xxxxxxxxx",
"lastUnreadMessageId": "0"
}
]
}
}
},
"timestamp": "2026-01-19T16:47:11.017Z"
}Response Body
| Field | Type | Description |
|---|---|---|
statusCode | number | The HTTP status code of the response (e.g., 200) |
message | string | A human-readable message about the result |
data | object | The main response payload |
ββ status_code | number | The internal status code of the Fansly operation |
ββ data | object | Nested data container |
ββ response | object | Container for the chat data |
ββ data | array | A list of chat objects |
ββ account_id | string | The ID of the connected account |
ββ groupId | string | The unique ID for the chat group. This is used as the chat_id in other endpoints. |
ββ partnerAccountId | string | The ID of the recipient user |
ββ partnerUsername | string | The username of the recipient |
ββ flags | number | Internal bitwise flags for the chat |
ββ unreadCount | number | Number of unread messages in this chat |
ββ subscriptionTierId | string | null | Required subscription tier ID (if any) |
ββ lastMessageId | string | The ID of the most recent message |
ββ lastUnreadMessageId | string | null | The ID of the last unread message |
timestamp | string | The ISO 8601 timestamp of when the response was generated |