curl --request GET \
--url https://api.pocketflows.com/events/{id}/trigger_executions \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.pocketflows.com/events/{id}/trigger_executions"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.pocketflows.com/events/{id}/trigger_executions', 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.pocketflows.com/events/{id}/trigger_executions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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.pocketflows.com/events/{id}/trigger_executions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pocketflows.com/events/{id}/trigger_executions")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pocketflows.com/events/{id}/trigger_executions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"page_info": {
"has_next_page": true,
"end_cursor": "<string>"
},
"data": [
{
"id": "<string>",
"trigger": "<string>",
"event": "<string>",
"customer": "<string>",
"scheduled_at": "<string>",
"step_count": 123,
"current_step_id": "<string>",
"status": "pending",
"failed_at": "<string>",
"failed_reason": "<string>",
"finished_at": "<string>",
"finished_reason": "<string>",
"stopped_at": "<string>",
"started_at": "<string>",
"created_at": "<string>"
}
],
"total_count": 123
}List the trigger executions created by an event
curl --request GET \
--url https://api.pocketflows.com/events/{id}/trigger_executions \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.pocketflows.com/events/{id}/trigger_executions"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.pocketflows.com/events/{id}/trigger_executions', 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.pocketflows.com/events/{id}/trigger_executions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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.pocketflows.com/events/{id}/trigger_executions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pocketflows.com/events/{id}/trigger_executions")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pocketflows.com/events/{id}/trigger_executions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"page_info": {
"has_next_page": true,
"end_cursor": "<string>"
},
"data": [
{
"id": "<string>",
"trigger": "<string>",
"event": "<string>",
"customer": "<string>",
"scheduled_at": "<string>",
"step_count": 123,
"current_step_id": "<string>",
"status": "pending",
"failed_at": "<string>",
"failed_reason": "<string>",
"finished_at": "<string>",
"finished_reason": "<string>",
"stopped_at": "<string>",
"started_at": "<string>",
"created_at": "<string>"
}
],
"total_count": 123
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
The ID of the event
Query Parameters
Cursor returned from the previous page's page_info.end_cursor. The row it points to is excluded from the result.
Case-insensitive substring match against the execution customer's full_name, email_address, or phone_number.
Response
A paginated list of the trigger executions the event created. Empty until the event is processed
Pagination metadata
Show child attributes
Show child attributes
The trigger executions on this page, newest first
Show child attributes
Show child attributes
Total number of records matching the filters (across all pages). Only present when expand[]=total_count is requested; opt-in because COUNT(*) is O(N) on large filtered sets.