Skip to main content

Approvals

When a run reaches an Approval Gate, it pauses with status Awaiting approval until someone decides. No worker is busy while it waits, so a run can stay paused for days.

Finding runs that need a decision​

  • The home dashboard lists the runs awaiting approval.
  • In the execution logs, filter by status Awaiting approval. The list updates live when a run starts waiting.
  • If the workflow is open in the editor, the waiting Approval Gate node has a teal border.

Approving or rejecting​

From the execution detail:

  1. Open the run from the execution logs.
  2. Find the row with status Pending approval.
  3. Click Approve or Reject.
  4. Enter a reason (optional) and confirm.

From the editor canvas:

  1. Click Approve or Reject on the waiting node card.
  2. Enter a reason and confirm.

Deciding requires the permission to run workflows (Administrator or Contributor). Only the first decision counts: once the step has been decided, timed out or the run was cancelled, a later Approve or Reject is refused with an error and doesn't change the run.

Steps that name their approvers​

When the gate's Who can approve lists people (see Approval Gate), only they see Approve and Reject. Everyone else sees Waiting for and the names. With All of these people the step lists each person with a tick once they've approved; the run continues when everyone has, and one rejection rejects it.

Listed people are notified in the app and by email. The email's Review and decide link opens the run at the step and only works for that person; anyone else who opens it sees This approval link was sent to someone else.

If a listed person has left the workspace, the step shows a warning. Workspace admins can Replace that person with another member, or Approve as admin / Reject as admin. Both are recorded in the audit log.

Through the API​

The app's decision endpoint is part of the app API (signed-in session):

curl -X POST "https://api.blokkio.com/api/projects/{projectId}/workflows/approvals/{executionId}/{nodeId}" \
-H "Content-Type: application/json" \
-H "X-Requested-With: blokkio" \
-d '{ "isApproved": true, "comment": "Looks good" }'
ResponseWhen
200The decision was accepted. The run continues (with All of these people, once everyone has approved).
403The step names its approvers and you aren't one of them, or the approval link (forUserId) was sent to someone else.
404The execution doesn't exist in the project.
409The run isn't waiting for an approval at that node (already decided, timed out, cancelled or finished).

What happens next​

DecisionResult
ApproveThe run continues on the gate's Approved port.
RejectThe run continues on the gate's Rejected port. If nothing is connected there, that branch ends.

Rejecting does not fail or cancel the run. Connect the Rejected port if you need to notify someone or roll back.

The node's output records the decision and your reason, so later nodes can use it:

{ "Approved": false, "Comment": "Amount is above the limit" }
{{ $nodes['Manager approval'].Comment }}

Timeouts​

An Approval Gate can have an optional timeout in minutes. If nobody decides in time, the step is marked Timed out with Approval timed out. and the run fails, unless the node has an error port (the run continues down the error branch) or Continue on error enabled. Timed-out approvals are never retried. With no timeout, the gate waits indefinitely.

Cancelling a waiting run​

To stop a run that is awaiting approval without deciding, use Cancel execution in the execution logs. The pending approval is dropped, the Approval Gate step shows Cancelled and the run ends as Cancelled. See Timeouts and cancellation.