Trigger a published flow
Runtime entry point for TurboFlow. Sign the raw request body with SHA-256 HMAC
using the published version's trigger_secret and send the digest in X-Talkturo-Secret.
Async mode (default) returns 202 with run_id. Sync mode (?sync=true) waits up to
about 30 seconds for inline output.
curl -X POST "https://api.talkturo.com/api/flow/example_string/trigger?sync=true" \
-H "Content-Type: application/json" \
-H "X-Talkturo-Secret: example_string" \
-H "X-Talkturo-Secret: YOUR_API_KEY" \
-d '{
"params": {},
"context": {
"assistant_id": "example_string"
}
}'
import requests
import json
url = "https://api.talkturo.com/api/flow/example_string/trigger?sync=true"
headers = {
"Content-Type": "application/json",
"X-Talkturo-Secret": "YOUR_API_KEY"
}
data = {
"params": {},
"context": {
"assistant_id": "example_string"
}
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.talkturo.com/api/flow/example_string/trigger?sync=true", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Talkturo-Secret": "YOUR_API_KEY"
},
body: JSON.stringify({
"params": {},
"context": {
"assistant_id": "example_string"
}
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"params": {},
"context": {
"assistant_id": "example_string"
}
}`)
req, err := http.NewRequest("POST", "https://api.talkturo.com/api/flow/example_string/trigger?sync=true", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-Talkturo-Secret", "example_string")
req.Header.Set("X-Talkturo-Secret", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.talkturo.com/api/flow/example_string/trigger?sync=true')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['X-Talkturo-Secret'] = 'example_string'
request['X-Talkturo-Secret'] = 'YOUR_API_KEY'
request.body = '{
"params": {},
"context": {
"assistant_id": "example_string"
}
}'
response = http.request(request)
puts response.body
{
"ok": true,
"run_id": "example_string",
"output": {},
"error": "example_string",
"failed_node": "example_string",
"partial_output": {}
}
{
"ok": true,
"run_id": "example_string"
}
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
{
"error": "Internal Server Error",
"message": "An unexpected error occurred on the server",
"code": 500,
"requestId": "req_1234567890"
}
/flow/{flowId}/triggerTarget server for requests. Edit to use your own host.
SHA-256 HMAC digest of the raw request body. Used for TurboFlow published flow triggers (key = version trigger_secret) and some integration webhooks.
Flow identifier
Wait for final output inline when true
The media type of the request body
SHA-256 HMAC digest of the raw request body
Runtime input key-value pairs
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. SHA-256 HMAC digest of the raw request body. Used for TurboFlow published flow triggers (key = version trigger_secret) and some integration webhooks.
Path Parameters
Flow identifier
Query Parameters
Wait for final output inline when true
Headers
SHA-256 HMAC digest of the raw request body