Skip to main content
DELETE
/
conversations
/
{id}
/
messages
/
{message_id}
Delete a message
curl --request DELETE \
  --url https://api.getfernand.com/conversations/{id}/messages/{message_id} \
  --header 'X-API-Key: <api-key>'
{
  "error": "<string>"
}
Permanently removes a message and all associated data including attachments from storage. If the message is the last entry in the conversation, the entire conversation is also deleted. This action cannot be undone.

Authorizations

X-API-Key
string
header
required

Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.

Authentication to the API is performed by using the HTTP Header X-API-Key.

Path Parameters

id
integer<int64>
required

ID of the conversation containing the message.

message_id
string
required

UUID or ID of the message to delete.

Response

Message deleted successfully (no content returned).