Assistant messages in threads
Delete Thread Message
Deletes a message by its ID.
DELETE
This endpoint allows you to delete specific message within a thread.
It’s useful if your thread gets too large for LLM’s context.
Headers
Your Langtail API Key
Example:
"<LANGTAIL_API_KEY>"
Path Parameters
The ID of the thread containing the message.
The ID of the message to retrieve.
Response
200
application/json
Successfully deleted message
The unique identifier of the deleted message.
The object type, which is always 'thread.message.deleted' for this response.
Example:
"thread.message.deleted"
Indicates that the message was successfully deleted.
Example:
true
Was this page helpful?