curl --request DELETE \
--url https://app.onlyfansapi.com/api/{account}/chats/{chat_id}/messages/{message_id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"success": true
},
"_meta": {
"_credits": {
"used": 1,
"balance": 9976,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 999,
"remaining_day": 49990
}
}
}
Delete a message from a chat. Please note that ONLY messages sent less than 24 hours ago can be deleted.
curl --request DELETE \
--url https://app.onlyfansapi.com/api/{account}/chats/{chat_id}/messages/{message_id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"success": true
},
"_meta": {
"_credits": {
"used": 1,
"balance": 9976,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 999,
"remaining_day": 49990
}
}
}
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
The Account ID
The ID of the chat, usually a fan's OnlyFans User ID
The ID of the message to delete
Success
The response is of type object
.