Skip to main content
POST
/
chat
/
threads
New chat
curl --request POST \
  --url https://www.dench.com/api/v1/chat/threads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "Summarize the latest CRM changes."
}
'
{
  "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
prompt
string
required

The user message that starts the turn.

model
string
fileContextPath
string
visibility
enum<string>
Available options:
private,
shared
yolo
boolean

Bypass approval gates for this turn.

title
string

Response

Successful response