POST/threads

Create Thread

This endpoint creates a Thread to contain Messages.

Authorization

Request

POST
/threads
curl -X POST "https://mdb.ai/threads" \
  -H "Authorization: Bearer MINDS_API_KEY" \
  -H "Content-Type: application/json"

Response

{
    "id": "mdb_thread_d79c95547e5f4501a32df6f492ad5be9",
    "created_at": 1718884196,
    "metadata": null,
    "object": "thread",
    "tool_resources": null
}

DELETE/threads/{thread_id}

Delete Thread

This endpoint deletes a Thread and all associated Messages.

Path Parameters

  • Name
    thread_id
    Type
    string
    Required
    Description

    Id of a Thread to be deleted.

Authorization

Request

DELETE
/threads/{thread_id}
curl -X DELETE "https://mdb.ai/threads/mdb_thread_d79c95547e5f4501a32df6f492ad5be9" \
  -H "Authorization: Bearer MINDS_API_KEY"

Response

{
    "id": "mdb_thread_d79c95547e5f4501a32df6f492ad5be9",
    "deleted": true,
    "object": "thread.deleted"
}

Was this page helpful?