Resolve Step
Steps
Resolve Step
POST
Resolve Step
Use this API to resolve a step that’s currentlyDocumentation Index
Fetch the complete documentation index at: https://velt-v5-0-2-beta-28.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
running or waiting. The endpoint supports two families of actions:
- Admin-grade overrides (
force-approve,force-reject,force-complete,force-fail) — break a stuck step out ofwaitingor terminate a running step with an admin-supplied output. Audit log records the actor as an operator override. - Reviewer-scoped decisions (
reviewer-approve,reviewer-reject) — record a reviewer’s approve/reject decision through the API instead of through the comment-reply flow. Auth-gated to userIds in the step’s declared reviewer list.
step.overridden audit event with { actorId, action, reason, decision }.
Endpoint
POST https://api.velt.dev/v2/workflow/steps/resolve
Headers
Your API key.
Your Auth Token.
Body
Params
Action matrix
| Action | Auth gate | Allowed step states | Resulting step status | Notes |
|---|---|---|---|---|
force-approve | auth token | waiting (human only) | completed | Synthesizes output.decision = 'approve'. Downstream edges that gate on decision == 'approve' fire. |
force-reject | auth token | waiting (human only) | completed | Synthesizes output.decision = 'reject'. Downstream edges that gate on decision == 'reject' fire. |
force-complete | auth token | running or waiting (any) | completed | Caller-supplied output (or {}) is written through. Downstream edges fire as if the step completed normally. |
force-fail | auth token | running or waiting (any) | failed | Caller-supplied output is recorded. Edges that gate on the failed terminal status fire (e.g. escalation routing). |
reviewer-approve | auth token + actorId ∈ step.reviewerIds | waiting (human only) | completed | Mechanically identical to force-approve but distinguished in the audit log so “reviewer acted” ≠ “operator overrode”. |
reviewer-reject | auth token + actorId ∈ step.reviewerIds | waiting (human only) | completed | Mechanically identical to force-reject. Same audit distinction. |
Authority-of-record. For all approve/reject actions (admin and reviewer), the engine computes
decision, approved, and approvalReply itself. Caller-supplied output keys with the same names cannot override them. Other keys in output pass through. This prevents a reviewer from sending action: 'reviewer-reject' with output: { decision: 'approve' } and routing edges as an approval while the audit log records a rejection.Example Requests
Reviewer approves through the API
Admin force-completes a stuck blocking-agent step
Admin force-fails a step to trigger an escalation edge
Response
Success Response
Failure Response
| Code | Cause |
|---|---|
INVALID_ARGUMENT | Schema validation (missing action, missing actorId, etc.). |
PERMISSION_DENIED | reviewer-approve / reviewer-reject with actorId not in the step’s declared reviewer list. |
FAILED_PRECONDITION | Step is already terminal, step is not in an allowed state for the action (e.g. force-approve on a non-human step), or the underlying transition CAS rejected the change. |
NOT_FOUND | executionId or stepId does not exist. |
Workspace-admin RBAC is post-GA. Today the
force-* actions gate on the standard auth token only. Until role-based access lands, restrict who can call this endpoint inside your own application.
