DELETE /v2/threads/{threadId}/messages/{messageId}

Deletes a message by its ID.

Request

  • Base URL
    https://api.langtail.com
  • Auth
    none declared. Required headers: X-API-Key

Path parameters

threadIdstring required

The ID of the thread containing the message.

messageIdstring required

The ID of the message to retrieve.

Headers

X-API-Keystring required
Example:<LANGTAIL_API_KEY>

Your Langtail API Key

Response

Successfully deleted message

idstring required

The unique identifier of the deleted message.

objectstring required

The object type, which is always 'thread.message.deleted' for this response.

deletedboolean required

Indicates that the message was successfully deleted.

Example response

{
  "object": "thread.message.deleted",
  "deleted": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.