curl --request POST \
--url https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay', 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/{id}/replay",
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.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay"
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.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay")
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_body{
"uuid": "<string>",
"status": "pending"
}Replay a v2 event delivery
Re-sends the stored request body of an earlier delivery byte for byte — same Journeybee-Event-Id, a new Journeybee-Delivery-Id, a fresh signature timestamp signed with every live secret at send time. The record and the subscription filter are never re-read. The replay is a new delivery chain (the response’s uuid is the new delivery; the log links it to the ROOT delivery via replay_of_delivery_uuid — replaying a replay resolves to the root) on the same queue and retry policy. Unknown or foreign subscriptions and deliveries, a delivery under another subscription, a delivery past the 30-day retention, and a replay whose root is gone all return the same 404. A scoped credential must also hold the read grant for the delivery’s resource (e.g. leads:read for a lead event) or gets 403, and any caller gets 403 while the subscription’s owning app installation no longer holds that grant, is revoked, or its app is disabled. Returns 409 subscription_not_active while the subscription is not active, 409 replay_body_unavailable when the stored body was not retained, and 429 above 60 replays per minute per subscription or 300 per minute per company.
curl --request POST \
--url https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay', 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/{id}/replay",
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.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay"
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.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/event-subscriptions/{uuid}/deliveries/{id}/replay")
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_body{
"uuid": "<string>",
"status": "pending"
}