List a subscription's event deliveries (the v2 delivery log)
curl --request GET \
--url https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries', 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.journeybee.io/v1/event-subscriptions/{uuid}/deliveries",
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: 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.journeybee.io/v1/event-subscriptions/{uuid}/deliveries"
req, _ := http.NewRequest("GET", 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.get("https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"uuid": "<string>",
"subscription_uuid": "<string>",
"event_id": "<string>",
"event_type": "<string>",
"resource_object": "<string>",
"resource_uuid": "<string>",
"attempt": 123,
"status": "pending",
"response_status": 123,
"response_body_excerpt": "<string>",
"error_class": "<string>",
"requested_at": "<string>",
"completed_at": "<string>",
"next_attempt_at": "<string>",
"rate_limited_count": 123,
"last_rate_limited_at": "<string>",
"replay_of_delivery_uuid": "<string>"
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total": 123,
"total_pages": 123
}
}Event Subscriptions
List a subscription's event deliveries (the v2 delivery log)
Lists the delivery chains of one subscription, newest first. A scoped credential sees only the deliveries of event families it holds the read grant for (e.g. leads:read for lead events); the rest are left out of the list and the totals. An event_type filter naming a family a scoped credential cannot read returns 403. Unknown or foreign subscriptions return 404.
GET
/
event-subscriptions
/
{uuid}
/
deliveries
List a subscription's event deliveries (the v2 delivery log)
curl --request GET \
--url https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries', 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.journeybee.io/v1/event-subscriptions/{uuid}/deliveries",
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: 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.journeybee.io/v1/event-subscriptions/{uuid}/deliveries"
req, _ := http.NewRequest("GET", 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.get("https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"uuid": "<string>",
"subscription_uuid": "<string>",
"event_id": "<string>",
"event_type": "<string>",
"resource_object": "<string>",
"resource_uuid": "<string>",
"attempt": 123,
"status": "pending",
"response_status": 123,
"response_body_excerpt": "<string>",
"error_class": "<string>",
"requested_at": "<string>",
"completed_at": "<string>",
"next_attempt_at": "<string>",
"rate_limited_count": 123,
"last_rate_limited_at": "<string>",
"replay_of_delivery_uuid": "<string>"
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total": 123,
"total_pages": 123
}
}