Skip to content
Last updated

Delete a specific message from a thread. NEW endpoint for selective message removal with proper authorization.

DELETEhttps://api.aitronos.com/v1/threads/{thread_id}/messages/{message_id}

Delete a specific message from a thread. This is a new endpoint that provides selective message removal capabilities with proper authorization and audit trails.

Path Parameters

thread_id string required

The unique identifier of the thread containing the message.

message_id string required

The unique identifier of the message to delete.

Bash
curl -X DELETE "https://api.aitronos.com/v1/threads/thread_abc123/messages/msg_123" \
  -H "X-API-Key: $FREDDY_API_KEY"

Response:

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