🚀 Simplify your work by integrating Haufe Copilot via API
Threads

Delete a thread

Soft-deletes a thread and triggers background cleanup of associated resources.

DELETE/v1/threads/{thread_id}

Authorization

APIKeyHeader
api-key<token>

In: header

Path Parameters

thread_id*Thread Id
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{  "error_code": "thread_is_deactivated",  "detail": "Thread is deactivated"}
{  "error_code": "unauthorized",  "detail": "Missing or invalid API key"}
{  "error_code": "thread_not_found",  "detail": "Thread not found"}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}

{  "message": "Rate limit exceeded!"}

{  "error_code": "internal_server_error",  "detail": "Internal Server Error"}