Receive app events
curl --request POST \
--url https://api.example.com/api/v1/automation/app-events/{app} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/automation/app-events/{app}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/automation/app-events/{app}', 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.example.com/api/v1/automation/app-events/{app}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/automation/app-events/{app}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/api/v1/automation/app-events/{app}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/automation/app-events/{app}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyReceive app events
The fixed address of an app’s events: what an app sends there, how the signing key is checked and what the address answers.
POST
/
api
/
v1
/
automation
/
app-events
/
{app}
Receive app events
curl --request POST \
--url https://api.example.com/api/v1/automation/app-events/{app} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/automation/app-events/{app}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/automation/app-events/{app}', 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.example.com/api/v1/automation/app-events/{app}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/automation/app-events/{app}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/api/v1/automation/app-events/{app}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/automation/app-events/{app}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyThe shared address that an app, such as a chat app, sends its events to. Every flow in your instance that listens to the app uses it. The plug of the app reads each event, names the answer the app expects and decides which flows get it.
No token is needed. Each flow checks every event against the signing key of the app, so a forged call starts no run. Keep the key in the Space variable
APP_EVENT_SECRET_<APP>.{app} is the short name of the plug, such as slack. The Trigger tab of a flow that listens to the app shows the full address.
Request
The body is what the app sends, up to 1 MB. The app’s own headers are handed to the plug, except credentials.What happens
1
The plug reads the event
It names the event, the account it belongs to and the answer for the sender, for example a reply to an address check.
2
Flows are chosen
Flows that are switched on and listen to that event of that account are picked, up to 100 for one event.
3
Each flow checks the signature
The check uses the Space variable
APP_EVENT_SECRET_<APP>, for example APP_EVENT_SECRET_SLACK. A flow whose variable is missing shows a trigger error and starts nothing. A flow whose check fails starts nothing.4
Runs start
Each flow that accepts the event starts one run per item.
Answers
When the plug asked for an answer, the address sends exactly that, so the app’s address check passes. Otherwise:{ "data": { "runIds": ["cm1def"] } }
| Status | Meaning |
|---|---|
200 | The event was taken. runIds is empty when no flow started. |
404 | No installed plug has this short name. |
413 | The body is larger than 1 MB. |
429 | Too many calls from this sender in a minute. Retry-After says when to try again. |
Related
Last modified on November 5, 2026