DELETE
/
threads
/
{thread_id}
/
messages
/
{message_id}
curl -X DELETE https://api.portkey.ai/v1/threads/thread_abc123/messages/msg_abc123 \
  -H "Content-Type: application/json" \
  -H "x-portkey-api-key: $PORTKEY_API_KEY" \
  -H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" \
  -H "OpenAI-Beta: assistants=v2"
{
  "id": "<string>",
  "deleted": true,
  "object": "thread.message.deleted"
}

Authorizations

x-portkey-api-key
string
header
required
x-portkey-virtual-key
string
header
required

Path Parameters

thread_id
string
required

The ID of the thread to which this message belongs.

message_id
string
required

The ID of the message to delete.

Response

200 - application/json
OK
id
string
required
deleted
boolean
required
object
enum<string>
required
Available options:
thread.message.deleted