Chats
Mute Chat Notifications
Mute chat notifications from a specific user.
This endpoint allows you to mute chat notifications from a specific user. When muted, you will not receive alerts for their new messages.
https://v1.apifansly.com/api/fansly
POST
/{account_id}/chats/mute
Get Started
All requests to the Fansly API require an API Key. See the Authentication page for details.
curl -X POST "https://v1.apifansly.com/api/fansly/{account_id}/chats/mute" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"targetUserId": "user_id_string"
}'fetch("https://v1.apifansly.com/api/fansly/{account_id}/chats/mute", {
method: "POST",
headers: {
"x-api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"targetUserId": "user_id_string"
})
})import requests
url = "https://v1.apifansly.com/api/fansly/{account_id}/chats/mute"
headers = {
"x-api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"targetUserId": "user_id_string"
}
response = requests.post(url, headers=headers, json=payload)
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();
String jsonPayload = "{\"targetUserId\":\"user_id_string\"}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://v1.apifansly.com/api/fansly/{account_id}/chats/mute"))
.header("x-api-key", "YOUR_API_KEY")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(jsonPayload))
.build();
client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
.thenApply(HttpResponse::body)
.thenAccept(System.out::println)
.join();using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var payload = new StringContent("{\"targetUserId\":\"user_id_string\"}", Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://v1.apifansly.com/api/fansly/{account_id}/chats/mute", payload);
var responseString = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseString);package main
import (
"bytes"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://v1.apifansly.com/api/fansly/{account_id}/chats/mute"
payload := []byte(`{"targetUserId":"user_id_string"}`)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(payload))
req.Header.Set("x-api-key", "YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
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.
Request Body
targetUserId*
stringThe unique identifier of the user to mute.
Response
{
"statusCode": 201,
"message": "Success",
"data": {
"status_code": 200,
"data": {
"success": true,
"response": {
"accountId": "account_id_string",
"ignoredId": "user_id_string",
"ignoreFlags": 1
}
}
},
"timestamp": "2026-05-12T19:33:23.627Z"
}Response Body
| Field | Type | Description |
|---|---|---|
statusCode | number | The HTTP status code of the response (e.g., 201) |
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 |
├─ success | boolean | Indicates whether the request was successful |
└─ response | object | Detailed information about the mute configuration |
├─ accountId | string | The unique identifier of your connected account |
├─ ignoredId | string | The unique identifier of the muted user |
└─ ignoreFlags | number | The flag value applied (1 represents muted status) |
timestamp | string | The ISO 8601 timestamp of when the response was generated |