Bevaya Logo
Bevaya API

Flow Executions

Monitor and manage flow execution history and step-level details.


List flow executions

GET
https://platform.bevaya.ai/api/v1
/flow-executions

Retrieve a paginated list of executions for a specific flow, or across every flow in the caller's organization when flowId is omitted.

List flow executions › query Parameters

flowId
​string · style: form · explode: true

The flow ID to retrieve executions for. Format: UUID. Omit to retrieve executions across every flow in the caller's organization. Example: 5e104847-9564-8fa2-2431-844372809012.

status
​execution-status.ExternalFlowExecutionStatus · enum · style: form · explode: true

Filter by lifecycle status. One of pending, running, in_review, completed, failed, canceled — the same six values each returned execution's status carries. Filters the top-level executions in the response. Nested children are the step-level executions belonging to a matching parent and are returned whatever their own status, so a matching run is never returned with part of its tree missing. Any other value is rejected with invalid_argument.

Enum values:
pending
running
in_review
completed
failed
canceled
createdAfter
​string · style: form · explode: true

Only include executions created at or after this instant. ISO timestamp. Example: 2026-03-31T00:00:00Z.

createdBefore
​string · style: form · explode: true

Only include executions created at or before this instant. ISO timestamp. Example: 2026-03-31T23:59:59Z.

page
​number · style: form · explode: true

1-indexed page number to retrieve. Defaults to 1.

perPage
​number · style: form · explode: true

Number of executions to return per page. Defaults to 25.

List flow executions › Responses

Success response

​dto.FlowExecutionDto[] · required

The list of items

​object · required
​object · required

Get flow execution status

GET
https://platform.bevaya.ai/api/v1
/flow-executions/{executionId}

Retrieve the projected lifecycle status and the work items produced by a specific flow execution.

Get flow execution status › path Parameters

executionId
​string · required · style: simple

Get flow execution status › Responses

Success response


Rerun a flow execution

POST
https://platform.bevaya.ai/api/v1
/flow-executions/{executionId}/rerun

Create a new execution based on an existing one, using the same inputs.

Rerun a flow execution › path Parameters

executionId
​string · required · style: simple

Rerun a flow execution › Responses

Success response

​dto.RerunFlowResponseDto · required

Get execution step details

GET
https://platform.bevaya.ai/api/v1
/flow-executions/{executionId}/steps

Retrieve the step-by-step execution trace for a specific flow execution.

Get execution step details › path Parameters

executionId
​string · required · style: simple

Get execution step details › Responses

Success response

​dto.StepExecutionsResponseDto · required

Run a flow

POST
https://platform.bevaya.ai/api/v1
/flows/{flowId}/run

Trigger a new execution of the specified flow.

Run a flow › path Parameters

flowId
​string · required · style: simple

Run a flow › Request Body

environmentId
​string · required

The environment in which to run the flow. Format: UUID. Example: 4d0f3736-8453-7e91-1320-7332617f8901.

breakpoints
​string[]

Step references at which to pause execution. Only meaningful for non-PRODUCTION execution modes.

configurationId
​string

Optional configuration to apply during execution. Format: UUID. Example: 92548281-3908-23e6-6875-288716243456.

draftId
​string

Optional draft ID to execute a specific unpublished draft version. Format: UUID.

executionMode
​string · enum

Execution mode for the run. DEBUG/TEST/REPLAY support step-through and breakpoint tooling; PRODUCTION is the normal run mode.

Enum values:
PRODUCTION
DEBUG
TEST
REPLAY
Enum values:
ui
trigger
api
​object

Key-value pairs of variables to pass to the flow. Example: { "documentType": "invoice", "priority": "high" }.

Run a flow › Responses

Success response

​dto.RunFlowResponseDto · required