logo
Workflow Runs

Run a workflow

post
https://api.workflows.tryleap.ai/v1/runs

This endpoint lets the user run a specified workflow with the provided workflow definition.

Execute an API Request

Request Body
workflow_idstringrequired

The ID of the workflow to be run.

webhook_urlstring

The URL to which the workflow results should be sent to on completion.

inputobject

Variables that the workflow can use globally and their values.

Authorization
Request
Installation
$
npm install @leap-ai/workflows
1
Loading...

Response fields

object
idstring
version_idstring
statusstring
created_atstring
started_atstring or null
ended_atstring or null
workflow_idstring
errorstring or null
inputobject or null
outputobject or null
1
{
2
"id": "string",
3
"version_id": "string",
4
"status": "completed",
5
"created_at": "string",
6
"started_at": null,
7
"ended_at": null,
8
"workflow_id": "string",
9
"error": null,
10
"input": null,
11
"output": null
12
}