Approve a pending workflow step
POST /v1/workflow-executions/{workflowExecutionId}/approvals/{workflowApprovalId}/resolve · SDK resolveWorkflowApproval · CLI deployments workflow-approval approve, deployments workflow-approval reject
Requires approvals:write.
AuthorizationBearer <token>Opaque bearer credential scoped to one service account and tenant.
workflowExecutionId*string^[0-7][0-9A-HJKMNP-TV-Z]{25}$workflowApprovalId*string^[0-7][0-9A-HJKMNP-TV-Z]{25}$x-deployments-environment?stringRequired with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.
^[0-7][0-9A-HJKMNP-TV-Z]{25}$x-deployments-organization?stringRequired with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.
^[0-7][0-9A-HJKMNP-TV-Z]{25}$x-deployments-project?stringRequired with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.
^[0-7][0-9A-HJKMNP-TV-Z]{25}$application/json- body
decision*string"approved""rejected"WorkflowApprovalResponse
application/json- response
environmentId*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$organizationId*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$projectId*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$createdAt*string^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$date-timeexpiresAt?string^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$date-timeid*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$object*"workflow-approval""workflow-approval"prompt*string^\S[\s\S]*\S$|^\S$|^$1 <= length <= 32000resolvedAt?string^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$date-timeresolvedBy?status*string"approved""canceled""expired""pending""rejected"stepAttemptId*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$updatedAt*string^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$date-timeversion*integer0 <= valueworkflowExecutionId*string^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$curl -X POST "https://example.com/v1/workflow-executions/string/approvals/string/resolve" \ -H "Content-Type: application/json" \ -d '{ "decision": "approved" }'{ "environmentId": "string", "organizationId": "string", "projectId": "string", "createdAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "id": "string", "object": "workflow-approval", "prompt": "string", "resolvedAt": "2019-08-24T14:15:22Z", "resolvedBy": { "id": "string", "type": "agent" }, "status": "approved", "stepAttemptId": "string", "updatedAt": "2019-08-24T14:15:22Z", "version": 0, "workflowExecutionId": "string"}