Skip to main content
POST
/
workflows
/
start
/
{workflow_id}
import requests

response = requests.post(
    'https://api.usedari.com/workflows/start/23a45a3f-c58c-492a-8e81-0fe6b3704ad2',
    headers={
        'X-API-Key': 'YOUR_API_KEY',
        'Content-Type': 'application/json'
    },
    json={
        'input_variables': {
            'primary_email': 'avyay@mupt.ai'
        }
    }
)

result = response.json()
print(f"Workflow started: {result}")
{
  "workflow_execution_id": "exec_987654321",
  "status": "started"
}
This endpoint allows you to programmatically start a workflow execution with the specified input variables.

Path Parameters

workflow_id
string
required
The unique identifier of the workflow to start

Headers

X-API-Key
string
required
Your API key for authentication
Content-Type
string
required
Must be application/json

Request Body

input_variables
object
required
Key-value pairs of input variable names and their values
import requests

response = requests.post(
    'https://api.usedari.com/workflows/start/23a45a3f-c58c-492a-8e81-0fe6b3704ad2',
    headers={
        'X-API-Key': 'YOUR_API_KEY',
        'Content-Type': 'application/json'
    },
    json={
        'input_variables': {
            'primary_email': 'avyay@mupt.ai'
        }
    }
)

result = response.json()
print(f"Workflow started: {result}")
{
  "workflow_execution_id": "exec_987654321",
  "status": "started"
}

Usage Notes

  • API Key: Get your API key from the Dari dashboard
  • Workflow ID: Found in your workflow URL or dashboard
  • Input Variables: Must match the variable names defined in your workflow
  • Variable Types: Supports string, number, boolean, and file variables

Error Responses

{
  "error": "Invalid API key"
}
{
  "error": "Workflow not found"
}
{
  "error": "Missing required input variables"
}