cURL
curl --request DELETE \ --url https://api.langtail.com/v2/threads/{threadId}/messages/{messageId} \ --header 'X-API-Key: <x-api-key>'
{ "id": "<string>", "object": "thread.message.deleted", "deleted": true }
Deletes a message by its ID.
Your Langtail API Key
"<LANGTAIL_API_KEY>"
The ID of the thread containing the message.
The ID of the message to retrieve.
Successfully deleted message
The response is of type object.
object
Was this page helpful?