Skip to main content
DELETE
/
chat
/
threads
Delete threads
curl --request DELETE \
  --url https://www.dench.com/api/v1/chat/threads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "threadIds": []
}
'
{
  "error": {
    "message": "<string>",
    "type": "<string>",
    "code": "<string>",
    "details": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Body

application/json
threadIds
string[]
required
Required array length: 1 - 25 elements
includeAutomated
boolean

Response

Successful response