cURL
curl --request DELETE \ --url https://recoup-api.vercel.app/api/chats/{id}/messages/trailing
{ "status": "success", "chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "from_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Delete all messages in a chat from a given message onward (inclusive), identified by from_message_id.
from_message_id
The unique identifier (UUID) of the chat room.
The message UUID from which trailing messages should be deleted (inclusive).
Trailing messages deleted successfully
Status of the request
success
The chat UUID where deletion was applied.
The message UUID used as the trailing deletion boundary.
Was this page helpful?