curl -X DELETE "https://mdb.ai/threads/mdb_thread_d79c95547e5f4501a32df6f492ad5be9" \
  -H "Authorization: Bearer MINDS_API_KEY"
{
    "id": "mdb_thread_d79c95547e5f4501a32df6f492ad5be9",
    "deleted": true,
    "object": "thread.deleted"
}

This API endpoint deletes a Thread and all associated Messages using the DELETE method.

Body

None.

Response

id
string
required

Unique identifier for the deleted thread.

deleted
boolean
required

Indicates whether the thread was successfully deleted.

object
string
required

The type of the returned object, which will be "thread.deleted".

Authorization

A valid API key must be passed in the Authorization header:

Authorization: Bearer MINDS_API_KEY

Generate your API key here.

Path Parameters

thread_id
string
required

Id of the Thread to be deleted.

curl -X DELETE "https://mdb.ai/threads/mdb_thread_d79c95547e5f4501a32df6f492ad5be9" \
  -H "Authorization: Bearer MINDS_API_KEY"
{
    "id": "mdb_thread_d79c95547e5f4501a32df6f492ad5be9",
    "deleted": true,
    "object": "thread.deleted"
}