Run a manually triggered workflow
curl --request POST \
--url https://connie.ai/api/workflows/{workflowId}/run/manual \
--header 'Content-Type: application/json' \
--header 'Cookie: <api-key>' \
--data '
{
"values": {},
"waitForResult": false
}
'import requests
url = "https://connie.ai/api/workflows/{workflowId}/run/manual"
payload = {
"values": {},
"waitForResult": False
}
headers = {
"Cookie": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Cookie: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({values: {}, waitForResult: false})
};
fetch('https://connie.ai/api/workflows/{workflowId}/run/manual', 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://connie.ai/api/workflows/{workflowId}/run/manual",
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([
'values' => [
],
'waitForResult' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Cookie: <api-key>"
],
]);
$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://connie.ai/api/workflows/{workflowId}/run/manual"
payload := strings.NewReader("{\n \"values\": {},\n \"waitForResult\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Cookie", "<api-key>")
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://connie.ai/api/workflows/{workflowId}/run/manual")
.header("Cookie", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"values\": {},\n \"waitForResult\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://connie.ai/api/workflows/{workflowId}/run/manual")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Cookie"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"values\": {},\n \"waitForResult\": false\n}"
response = http.request(request)
puts response.read_body{
"runId": "<string>",
"status": "running",
"started": 123,
"error": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}Runs
Run a manually triggered workflow
Runs a workflow whose trigger is Manually, with the values of its run form. Values are checked against the saved form and against the fields later steps use; a problem returns 400 with code MANUAL_RUN_INPUTS_INVALID and the list of fields in details.fields. File fields must be files uploaded through the run form in the app. The submitted values pre-fill the form next time. Needs edit access and enough credits.
POST
/
workflows
/
{workflowId}
/
run
/
manual
Run a manually triggered workflow
curl --request POST \
--url https://connie.ai/api/workflows/{workflowId}/run/manual \
--header 'Content-Type: application/json' \
--header 'Cookie: <api-key>' \
--data '
{
"values": {},
"waitForResult": false
}
'import requests
url = "https://connie.ai/api/workflows/{workflowId}/run/manual"
payload = {
"values": {},
"waitForResult": False
}
headers = {
"Cookie": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Cookie: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({values: {}, waitForResult: false})
};
fetch('https://connie.ai/api/workflows/{workflowId}/run/manual', 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://connie.ai/api/workflows/{workflowId}/run/manual",
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([
'values' => [
],
'waitForResult' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Cookie: <api-key>"
],
]);
$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://connie.ai/api/workflows/{workflowId}/run/manual"
payload := strings.NewReader("{\n \"values\": {},\n \"waitForResult\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Cookie", "<api-key>")
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://connie.ai/api/workflows/{workflowId}/run/manual")
.header("Cookie", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"values\": {},\n \"waitForResult\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://connie.ai/api/workflows/{workflowId}/run/manual")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Cookie"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"values\": {},\n \"waitForResult\": false\n}"
response = http.request(request)
puts response.read_body{
"runId": "<string>",
"status": "running",
"started": 123,
"error": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}Authorizations
The full Cookie header copied from a signed-in connie.ai browser request. See the Authentication page.
Path Parameters
The workflow's id, as in https://connie.ai/<workspace-id>/workflows/<workflow-id>.
Body
application/json