Monitoring
Inspect instances, retry failed nodes, drain the dead-letter queue, and stop everything at once.
Every workflow run is an instance you can inspect, pause, retry, or cancel. The console renders all of this; the API is the same surface for scripting it.
# Instances for one workflow, newest first
curl -G https://api.console.buildbase.app/api/workflows/$WORKFLOW_ID/instances \
-H "Authorization: $BUILDBASE_TOKEN" \
--data-urlencode 'filter={"status":"failed"}' \
--data-urlencode 'sort={"createdAt":-1}'Before you start
These endpoints are governed by workflows_instances, not workflows - runs
and definitions are separate grants. Listing and inspecting needs read;
pausing, resuming, retrying and cancelling are all POST, so they need
create.
Reading an instance's logs additionally needs read on workflows_logs, and
its per-node records read on workflows_actions. Admin-created tokens bypass
every check. See the admin API for the full resource
list.
In the console
Open workflow runs in the console
(opens the console in a new tab)1. Open the runs
In the left rail choose Workflows, then Runs. Workflow runs lists every run with its status, its workflow, the trigger that started it, how long it took and how far it got. View runs in a workflow's menu, and Runs in the builder, show one workflow's. Press View on a run.

2. Read a step
The run shows its flow on the left and its timeline on the right. Pick a step: the panel shows its status, its Inputs and its Outputs, and for a failed step its error with Retry this node. In the header, Pause, Cancel, Resume and Retry failed act on the whole run.

3. Check Failed jobs
Failed jobs lists trigger events that could not start their workflows, after every retry (the dead-letter queue). Retry one from its row's menu, or press Retry all or Purge all. Retrying is a feature of your plan.

Instance status
| Status | Meaning | Terminal |
|---|---|---|
running | Executing, or waiting on a delay or event | No |
paused | Halted, resumable | No |
completed | Finished successfully | Yes |
failed | A node exhausted its retries with no error path | Yes |
canceled | Stopped manually | Yes |
Individual action nodes carry their own finer-grained status: pending,
queued, running, waiting, completed, failed, skipped, canceled.
A node showing skipped inside a completed instance is normal - it means a
condition routed around it.
Inspecting
| Method | Path | Returns |
|---|---|---|
GET | /api/workflows/instances | All instances, paginated |
GET | /api/workflows/instances/counts | Counts by status, for dashboards |
GET | /api/workflows/:id/instances | Instances of one workflow |
GET | /api/workflows/instances/:instanceId | One instance |
GET | /api/workflows/instances/:instanceId/actions | Per-node state for the run |
GET | /api/workflows/instances/:instanceId/logs | Execution log |
GET | /api/workflows/:id/test-instances | Runs produced by /test |
Instances are also addressable by subject, which is how you answer "what is running for this customer":
/api/workflows/audience/:audienceId/instances/api/workflows/workspace/:workspaceId/instances/api/workflows/user/:userId/instances
Pausing and resuming
Pausing works at four scopes, and each records why it was paused -
manual, workflow, org, audience, workspace, or version.
| Scope | Endpoint |
|---|---|
| One instance | POST /api/workflows/instances/:instanceId/pause |
| One audience member | POST /api/workflows/audience/:audienceId/pause |
| One workspace | POST /api/workflows/workspace/:workspaceId/pause |
| Everything | POST /api/workflows/emergency-stop |
Each has a matching resume, and emergency-resume reverses the org-wide stop.
That pausedBy provenance matters: each resume filters on the scope that
paused the instance, so resuming a workspace does not restart instances paused
for a different reason. An instance paused by the org-wide stop stays paused
until emergency-resume, even if you resume its workspace.
The response reports what it acted on:
{ "success": true, "data": { "audienceId": "…", "resumedInstances": 42 } }Resume processes instances in batches, re-queueing each one's pending actions
as it goes, so a single call handles the whole scope however many are paused.
resumedInstances is the total it acted on.
Resuming a workflow, POST /api/workflows/:id/resume with resumeMode in the
body, offers two modes:
| Mode | Behavior |
|---|---|
all, the default | Resume every paused instance of the workflow, and start runs for the trigger events held while it was paused |
new_only | Cancel every paused instance of the workflow, for good: their remaining steps never run. Held trigger events are marked skipped and start nothing. Only events from now on start runs |
Warning
new_only does not leave paused runs paused: it cancels them, and a cancelled
run cannot be resumed. To keep the paused runs, resume with all. The
console's Resume always uses all.
The answer reports what it did:
{
"success": true,
"data": {
"resumeMode": "new_only",
"resumedInstances": 0,
"canceledInstances": 1,
"heldEventsProcessed": 0,
"heldEventsSkipped": 0
}
}GET /api/workflows/:id/resume/preview answers { pausedInstances, heldTriggerEvents } before you commit: the runs all would resume and
new_only would cancel, and the events all would start and new_only would
skip.
Retrying
A failed node can be retried in place without re-running the whole instance:
curl -X POST \
https://api.console.buildbase.app/api/workflows/instances/$INSTANCE_ID/retry/$NODE_ID \
-H "Authorization: $BUILDBASE_TOKEN"Execution resumes from that node with the instance's existing context, so earlier nodes do not run twice.
A Grant credits step is the one action that is not retried on its own: it has a single attempt, so a grant that timed out after it was saved is not granted again. Retrying it here is safe too. Each grant is keyed on the run and the step, and a grant the workspace already received is not repeated.
To stop a run entirely, POST /api/workflows/instances/:instanceId/cancel.
The dead-letter queue
A trigger event that cannot be processed lands in the DLQ rather than being dropped. This is the layer before an instance exists - an event that never started a run.
In the console it is Workflows > Failed jobs: each event with Retry, and Retry all and Purge all for every failed one.
| Method | Path | Purpose |
|---|---|---|
GET | /api/workflows/dead-letter-queue | List undelivered trigger events |
POST | /api/workflows/dead-letter-queue/:eventId/retry | Re-process one event |
POST | /api/workflows/dead-letter-queue/retry-all | Re-process every failed event |
DELETE | /api/workflows/dead-letter-queue/purge | Delete every failed event |
Both take an optional workflowId in the body to act on one workflow's events
only. Retrying is a feature of your BuildBase plan.
Trigger events carry their own status - pending, processing, processed,
failed, skipped. Only failed events are retryable. The retry flips the
status atomically, so two concurrent retries cannot both start the same event.
A retry on any other status returns 400:
{ "success": false, "message": "Cannot retry event with status: processed" }An unknown event ID returns 404. Because the guard is atomic rather than a
read-then-write, that 400 is also what a losing race returns - retrying an
event twice is safe.
Check the DLQ when a workflow "did not fire at all". A missing instance points
at the trigger layer, whereas a failed instance points at a node.
Emergency stop
POST /api/workflows/emergency-stop halts every running instance across the
organization. It is API only: no console button calls it. Use it when a workflow is sending wrong mail - it is faster than
pausing workflows one at a time, and emergency-resume puts everything back.
Pausing does not cancel. In-flight instances hold their position and continue from where they stopped, which means a delay that expired during the pause fires immediately on resume.
Next Steps
- Webhook actions - the most common failure source.
- Workflows overview - lifecycle, versions, and re-entry.
- Versions and history - pause the instances on one version, and per-step metrics.