Skip to main content
POST
/
api
/
v1
/
workflow
/
{workflow_id}
/
runs
Create Workflow Run
curl --request POST \
  --url https://app.asisso.com/api/v1/workflow/{workflow_id}/runs \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "<string>",
  "name": "<string>"
}
'
import requests

url = "https://app.asisso.com/api/v1/workflow/{workflow_id}/runs"

payload = {
"mode": "<string>",
"name": "<string>"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({mode: '<string>', name: '<string>'})
};

fetch('https://app.asisso.com/api/v1/workflow/{workflow_id}/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://app.asisso.com/api/v1/workflow/{workflow_id}/runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mode' => '<string>',
'name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://app.asisso.com/api/v1/workflow/{workflow_id}/runs"

payload := strings.NewReader("{\n \"mode\": \"<string>\",\n \"name\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://app.asisso.com/api/v1/workflow/{workflow_id}/runs")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"<string>\",\n \"name\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.asisso.com/api/v1/workflow/{workflow_id}/runs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"mode\": \"<string>\",\n \"name\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "id": 123,
  "workflow_id": 123,
  "name": "<string>",
  "mode": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "definition_id": 123,
  "initial_context": {}
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}
Creates a test execution of the workflow. No outbound call is placed — this is useful for validating agent behavior, checking prompt outputs, and testing tool integrations before going live.

Headers

authorization
string | null
X-API-Key
string | null

Path Parameters

workflow_id
integer
required

Body

application/json
mode
string
required
name
string
required

Response

Successful Response

id
integer
required
workflow_id
integer
required
name
string
required
mode
string
required
created_at
string<date-time>
required
definition_id
integer
required
initial_context
Initial Context · object | null