curl --request POST \
--url https://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId} \
--header 'Content-Type: application/json' \
--data '
{
"event": "issue_created",
"issue_id": "12345"
}
'import requests
url = "https://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}"
payload = {
"event": "issue_created",
"issue_id": "12345"
}
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({event: 'issue_created', issue_id: '12345'})
};
fetch('https://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}', 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://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}",
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([
'event' => 'issue_created',
'issue_id' => '12345'
]),
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://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}"
payload := strings.NewReader("{\n \"event\": \"issue_created\",\n \"issue_id\": \"12345\"\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://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"issue_created\",\n \"issue_id\": \"12345\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}")
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 \"event\": \"issue_created\",\n \"issue_id\": \"12345\"\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Trigger a workflow via webhook
Executes a workflow using a webhook URL with the API key embedded in the path. Designed for third-party services that cannot set custom headers (Slack, Discord, Linear, Zoom, etc.).
Supports the same two execution modes as the API trigger:
-
Asynchronous (default): Returns immediately with an empty (
null) response body. UseX-Pf-Run-IdandX-Pf-Automation-Idresponse headers to poll for results. -
Synchronous: Set
x-api-wait: true. Waits up to 60 seconds for results.
Note: Webhook triggers support JSON and form-encoded data only. File attachments are not supported.
curl --request POST \
--url https://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId} \
--header 'Content-Type: application/json' \
--data '
{
"event": "issue_created",
"issue_id": "12345"
}
'import requests
url = "https://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}"
payload = {
"event": "issue_created",
"issue_id": "12345"
}
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({event: 'issue_created', issue_id: '12345'})
};
fetch('https://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}', 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://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}",
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([
'event' => 'issue_created',
'issue_id' => '12345'
]),
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://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}"
payload := strings.NewReader("{\n \"event\": \"issue_created\",\n \"issue_id\": \"12345\"\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://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}")
.header("Content-Type", "application/json")
.body("{\n \"event\": \"issue_created\",\n \"issue_id\": \"12345\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://triggers.app.pinkfish.ai/ext/webhook/{apiKey}/triggers/{triggerId}")
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 \"event\": \"issue_created\",\n \"issue_id\": \"12345\"\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Headers
Path Parameters
Body
The body is of type object.
Response
Workflow triggered successfully.
Async mode (x-api-wait: false): Response body is null. Use the X-Pf-Run-Id and X-Pf-Automation-Id headers to poll for results.
Sync mode (x-api-wait: true): Response body contains the full workflow results if completed within 60 seconds.

