Set workflow trigger
curl --request POST \
--url https://posttu.com/api/v1/workflow/{id}/trigger \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workflowId": "wkf_123abc",
"name": "schedule",
"displayName": "Schedule",
"settings": {
"cron": "0 9 * * *"
},
"cronExpression": "0 9 * * *"
}
'import requests
url = "https://posttu.com/api/v1/workflow/{id}/trigger"
payload = {
"workflowId": "wkf_123abc",
"name": "schedule",
"displayName": "Schedule",
"settings": { "cron": "0 9 * * *" },
"cronExpression": "0 9 * * *"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workflowId: 'wkf_123abc',
name: 'schedule',
displayName: 'Schedule',
settings: {cron: '0 9 * * *'},
cronExpression: '0 9 * * *'
})
};
fetch('https://posttu.com/api/v1/workflow/{id}/trigger', 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://posttu.com/api/v1/workflow/{id}/trigger",
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([
'workflowId' => 'wkf_123abc',
'name' => 'schedule',
'displayName' => 'Schedule',
'settings' => [
'cron' => '0 9 * * *'
],
'cronExpression' => '0 9 * * *'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://posttu.com/api/v1/workflow/{id}/trigger"
payload := strings.NewReader("{\n \"workflowId\": \"wkf_123abc\",\n \"name\": \"schedule\",\n \"displayName\": \"Schedule\",\n \"settings\": {\n \"cron\": \"0 9 * * *\"\n },\n \"cronExpression\": \"0 9 * * *\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://posttu.com/api/v1/workflow/{id}/trigger")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workflowId\": \"wkf_123abc\",\n \"name\": \"schedule\",\n \"displayName\": \"Schedule\",\n \"settings\": {\n \"cron\": \"0 9 * * *\"\n },\n \"cronExpression\": \"0 9 * * *\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://posttu.com/api/v1/workflow/{id}/trigger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workflowId\": \"wkf_123abc\",\n \"name\": \"schedule\",\n \"displayName\": \"Schedule\",\n \"settings\": {\n \"cron\": \"0 9 * * *\"\n },\n \"cronExpression\": \"0 9 * * *\"\n}"
response = http.request(request)
puts response.read_body{
"id": "trg_xyz789",
"name": "schedule",
"displayName": "Schedule Trigger",
"settings": {
"cron": "0 9 * * *"
},
"workflowId": "<string>",
"cronExpression": "0 9 * * *"
}{
"error": "<string>"
}Activation and triggers
Set workflow trigger
Configure or update the primary starter trigger node on a workflow draft.
POST
/
api
/
v1
/
workflow
/
{id}
/
trigger
Set workflow trigger
curl --request POST \
--url https://posttu.com/api/v1/workflow/{id}/trigger \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workflowId": "wkf_123abc",
"name": "schedule",
"displayName": "Schedule",
"settings": {
"cron": "0 9 * * *"
},
"cronExpression": "0 9 * * *"
}
'import requests
url = "https://posttu.com/api/v1/workflow/{id}/trigger"
payload = {
"workflowId": "wkf_123abc",
"name": "schedule",
"displayName": "Schedule",
"settings": { "cron": "0 9 * * *" },
"cronExpression": "0 9 * * *"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workflowId: 'wkf_123abc',
name: 'schedule',
displayName: 'Schedule',
settings: {cron: '0 9 * * *'},
cronExpression: '0 9 * * *'
})
};
fetch('https://posttu.com/api/v1/workflow/{id}/trigger', 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://posttu.com/api/v1/workflow/{id}/trigger",
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([
'workflowId' => 'wkf_123abc',
'name' => 'schedule',
'displayName' => 'Schedule',
'settings' => [
'cron' => '0 9 * * *'
],
'cronExpression' => '0 9 * * *'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://posttu.com/api/v1/workflow/{id}/trigger"
payload := strings.NewReader("{\n \"workflowId\": \"wkf_123abc\",\n \"name\": \"schedule\",\n \"displayName\": \"Schedule\",\n \"settings\": {\n \"cron\": \"0 9 * * *\"\n },\n \"cronExpression\": \"0 9 * * *\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://posttu.com/api/v1/workflow/{id}/trigger")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workflowId\": \"wkf_123abc\",\n \"name\": \"schedule\",\n \"displayName\": \"Schedule\",\n \"settings\": {\n \"cron\": \"0 9 * * *\"\n },\n \"cronExpression\": \"0 9 * * *\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://posttu.com/api/v1/workflow/{id}/trigger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workflowId\": \"wkf_123abc\",\n \"name\": \"schedule\",\n \"displayName\": \"Schedule\",\n \"settings\": {\n \"cron\": \"0 9 * * *\"\n },\n \"cronExpression\": \"0 9 * * *\"\n}"
response = http.request(request)
puts response.read_body{
"id": "trg_xyz789",
"name": "schedule",
"displayName": "Schedule Trigger",
"settings": {
"cron": "0 9 * * *"
},
"workflowId": "<string>",
"cronExpression": "0 9 * * *"
}{
"error": "<string>"
}Configures or updates the starter node for a workflow draft. Every active workflow requires a configured trigger to initiate execution runs.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier of the workflow (wkf_...). |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Trigger piece type (e.g. schedule, webhook, rss_new_item, app_event). |
displayName | string | Yes | Human-readable title displayed on canvas node. |
settings | object | No | Piece-specific configuration properties (default {}). |
cronExpression | string | No | 5-field cron string required if name is schedule (e.g. 0 9 * * 1). |
cURL Example (Schedule Trigger)
curl -X POST "https://posttu.com/api/v1/workflow/wkf_abc123/trigger" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "schedule",
"displayName": "Every Monday at 9 AM",
"cronExpression": "0 9 * * 1",
"settings": {
"timezone": "America/New_York"
}
}'
Response Example
{
"data": {
"id": "trig_456",
"versionId": "ver_draft_101",
"name": "schedule",
"displayName": "Every Monday at 9 AM",
"cronExpression": "0 9 * * 1",
"settings": {
"timezone": "America/New_York"
},
"createdAt": "2026-07-29T22:18:00.000Z"
},
"success": true
}
Authorizations
Body
application/json
Response
Trigger details
Workflow trigger
Last modified on July 30, 2026

