Chat messages
List Chat Messages
Retrieve the message history for a specific chat.
Get the list of messages for a chat.
https://v1.apifansly.com
GET
/api/fansly/{account_id}/chats/{chat_id}/messages
The chat_id parameter corresponds to the groupId returned by the List Chats endpoint.
Get Started
All requests to the Fansly API require an API Key. See the Authentication page for details.
Path Parameters
curl -X GET "https://v1.apifansly.com/api/fansly/{account_id}/chats/{chat_id}/messages" \
-H "x-api-key: YOUR_API_KEY"fetch("https://v1.apifansly.com/api/fansly/{account_id}/chats/{chat_id}/messages", {
method: "GET",
headers: {
"x-api-key": "YOUR_API_KEY"
}
})import requests
url = "https://v1.apifansly.com/api/fansly/{account_id}/chats/{chat_id}/messages"
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/{chat_id}/messages"))
.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/{chat_id}/messages");
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/{chat_id}/messages"
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))
}account_id*
stringThe unique identifier for the connected account.
chat_id*
stringThe unique identifier for the chat.
Response
{
"statusCode": 200,
"message": "Success",
"data": {
"status_code": 200,
"data": {
"success": true,
"response": {
"messages": [
{
"id": "xxxxxxxxxxxxxxxx",
"type": 1,
"dataVersion": 1,
"content": "Hello form Fansly API 3",
"groupId": "854885651xxxxxxxxx",
"senderId": "854883131xxxxxxxxx",
"correlationId": "0",
"inReplyTo": null,
"inReplyToRoot": null,
"createdAt": 1768xxxxxxx,
"attachments": [],
"embeds": [],
"interactions": [
{
"userId": "8654079xxxxxxxx",
"readAt": 176877xxxxxxxxx,
"deliveredAt": 17687xxxxxxxx
}
],
"likes": [],
"totalTipAmount": 0
},
{
"id": "8691224xxxxxxxxxxxx",
"type": 1,
"dataVersion": 1,
"content": "π¦β‘Welcome to my corner!! Thank you for following me, I hope you have a nice stay here, I do personalized, dickrate and sexting!! Please drop that cum for me!! I am usually very friendly.",
"groupId": "8683242xxxxxxxx",
"senderId": "542982xxxxxxxx",
"correlationId": "8683xxxxxxxxxxxxx",
"inReplyTo": null,
"inReplyToRoot": null,
"createdAt": 176xxxxxxxx,
"attachments": [
{
"messageId": "86832426xxxxxxxx",
"contentType": 2,
"contentId": "6596572xxxxxxxx",
"pos": 0
},
{
"messageId": "8683242xxxxxxxx",
"contentType": 32001,
"contentId": "5571396xxxxxxxx",
"pos": 1
}
],
"embeds": [],
"interactions": [
{
"userId": "86540xxxxxxxx",
"readAt": 1768xxxxxxxx,
"deliveredAt": 17685xxxxxxxx
}
],
"likes": [],
"totalTipAmount": 0
}
]
}
}
},
"timestamp": "2026-01-19T17:10:50.635Z"
}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 message data |
ββ messages | array | A list of message objects |
ββ id | string | Unique identifier for the message |
ββ content | string | The text content of the message |
ββ senderId | string | The ID of the user who sent the message |
ββ createdAt | number | Unix timestamp of when the message was sent |
ββ attachments | array | A list of attached media or metadata |
β ββ contentType | number | The type of attachment |
β ββ contentId | string | The ID of the attached content |
ββ interactions | array | Delivery and read status for users |
β ββ userId | string | The ID of the user who interacted |
β ββ readAt | number | Unix timestamp of when the message was read |
β ββ deliveredAt | number | Unix timestamp of when the message was delivered |
ββ totalTipAmount | number | Total amount tipped on this message |
timestamp | string | The ISO 8601 timestamp of when the response was generated |