Skip to main content
POST
/
approvals
Request approval
curl --request POST \
  --url https://www.dench.com/api/v1/approvals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Deploy the new API branch?",
  "reason": "Production deploy changes public behavior.",
  "risk": "high"
}
'
{
  "ok": true,
  "approvalId": "<string>"
}

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
title
string
required

What needs human approval.

risk
enum<string>
required

Risk level.

Available options:
low,
medium,
high
reason
string

Response

Successful response

ok
boolean
required
approvalId
string
required