Workflow executions
Create Workflow Execution Async
Create a workflow execution
POST
/
workflow
/
workflow-executions
/
async
Create Workflow Execution Async
curl --request POST \
--url https://api.anyreach.ai/workflow/workflow-executions/async \
--header 'Content-Type: application/json' \
--data '
{
"initial_step": "<string>",
"input_data": {},
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_version": 123,
"definition": {},
"trigger_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "manual",
"scheduled_at": "2023-11-07T05:31:56Z",
"redact_input": [
"<string>"
]
}
'import requests
url = "https://api.anyreach.ai/workflow/workflow-executions/async"
payload = {
"initial_step": "<string>",
"input_data": {},
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_version": 123,
"definition": {},
"trigger_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "manual",
"scheduled_at": "2023-11-07T05:31:56Z",
"redact_input": ["<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({
initial_step: '<string>',
input_data: {},
workflow_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
workflow_version: 123,
definition: {},
trigger_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
source: 'manual',
scheduled_at: '2023-11-07T05:31:56Z',
redact_input: ['<string>']
})
};
fetch('https://api.anyreach.ai/workflow/workflow-executions/async', 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://api.anyreach.ai/workflow/workflow-executions/async",
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([
'initial_step' => '<string>',
'input_data' => [
],
'workflow_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'workflow_version' => 123,
'definition' => [
],
'trigger_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'source' => 'manual',
'scheduled_at' => '2023-11-07T05:31:56Z',
'redact_input' => [
'<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://api.anyreach.ai/workflow/workflow-executions/async"
payload := strings.NewReader("{\n \"initial_step\": \"<string>\",\n \"input_data\": {},\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workflow_version\": 123,\n \"definition\": {},\n \"trigger_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"source\": \"manual\",\n \"scheduled_at\": \"2023-11-07T05:31:56Z\",\n \"redact_input\": [\n \"<string>\"\n ]\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://api.anyreach.ai/workflow/workflow-executions/async")
.header("Content-Type", "application/json")
.body("{\n \"initial_step\": \"<string>\",\n \"input_data\": {},\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workflow_version\": 123,\n \"definition\": {},\n \"trigger_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"source\": \"manual\",\n \"scheduled_at\": \"2023-11-07T05:31:56Z\",\n \"redact_input\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anyreach.ai/workflow/workflow-executions/async")
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 \"initial_step\": \"<string>\",\n \"input_data\": {},\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workflow_version\": 123,\n \"definition\": {},\n \"trigger_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"source\": \"manual\",\n \"scheduled_at\": \"2023-11-07T05:31:56Z\",\n \"redact_input\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Organization ID for user PATs (pat_ prefix tokens)
Body
application/json
Show child attributes
Show child attributes
Available options:
manual, trigger, credential_refresh Dotted paths of keys into input_data, e.g. user_context.signature, whose values the run uses but does not keep. The response returns the run's results as they are. In the stored run, the input shows «redacted» at each path, and so does every copy of the whole input; a value copied anywhere else is replaced only if it is a string of six or more characters, and so is an equal value from anywhere else. Logs and error reports lose every redacted value. A path that names nothing is skipped; one that runs into a list, a scalar or null hides that value whole. Synchronous runs only.
Maximum array length:
50Required string length:
1 - 200Response
Successful Response
⌘I
Create Workflow Execution Async
curl --request POST \
--url https://api.anyreach.ai/workflow/workflow-executions/async \
--header 'Content-Type: application/json' \
--data '
{
"initial_step": "<string>",
"input_data": {},
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_version": 123,
"definition": {},
"trigger_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "manual",
"scheduled_at": "2023-11-07T05:31:56Z",
"redact_input": [
"<string>"
]
}
'import requests
url = "https://api.anyreach.ai/workflow/workflow-executions/async"
payload = {
"initial_step": "<string>",
"input_data": {},
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_version": 123,
"definition": {},
"trigger_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "manual",
"scheduled_at": "2023-11-07T05:31:56Z",
"redact_input": ["<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({
initial_step: '<string>',
input_data: {},
workflow_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
workflow_version: 123,
definition: {},
trigger_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
source: 'manual',
scheduled_at: '2023-11-07T05:31:56Z',
redact_input: ['<string>']
})
};
fetch('https://api.anyreach.ai/workflow/workflow-executions/async', 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://api.anyreach.ai/workflow/workflow-executions/async",
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([
'initial_step' => '<string>',
'input_data' => [
],
'workflow_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'workflow_version' => 123,
'definition' => [
],
'trigger_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'source' => 'manual',
'scheduled_at' => '2023-11-07T05:31:56Z',
'redact_input' => [
'<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://api.anyreach.ai/workflow/workflow-executions/async"
payload := strings.NewReader("{\n \"initial_step\": \"<string>\",\n \"input_data\": {},\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workflow_version\": 123,\n \"definition\": {},\n \"trigger_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"source\": \"manual\",\n \"scheduled_at\": \"2023-11-07T05:31:56Z\",\n \"redact_input\": [\n \"<string>\"\n ]\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://api.anyreach.ai/workflow/workflow-executions/async")
.header("Content-Type", "application/json")
.body("{\n \"initial_step\": \"<string>\",\n \"input_data\": {},\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workflow_version\": 123,\n \"definition\": {},\n \"trigger_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"source\": \"manual\",\n \"scheduled_at\": \"2023-11-07T05:31:56Z\",\n \"redact_input\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anyreach.ai/workflow/workflow-executions/async")
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 \"initial_step\": \"<string>\",\n \"input_data\": {},\n \"workflow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workflow_version\": 123,\n \"definition\": {},\n \"trigger_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"source\": \"manual\",\n \"scheduled_at\": \"2023-11-07T05:31:56Z\",\n \"redact_input\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"execution_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}
