Replay a delivery
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/replay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/replay"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/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://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/replay")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/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_bodyfalsecurl --request POST \
--url https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/replay \
--header 'Authorization: Bearer <token>'{
"ok": true,
"data": {
"replay": {
"ok": true,
"errorMessage": "<string>"
},
"delivery": {
"deliveryId": "<string>",
"subscriptionId": "<string>",
"developerId": "<string>",
"payload": "<string>",
"firstAttemptedAt": "2023-11-07T05:31:56Z",
"lastAttemptedAt": "2023-11-07T05:31:56Z",
"attemptCount": 123,
"httpStatus": 123,
"responseBodyExcerpt": "<string>",
"errorMessage": "<string>",
"nextRetryAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"signatureHeader": "<string>"
}
},
"contractVersion": "<string>"
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Webhooks
Replay a delivery
Re-fire a specific delivery with the current signing secret (the payload bytes are identical to the original). A failed replay still returns HTTP 200 — inspect replay.ok and the updated delivery row. Requires scopes audit:read and delivery:write. Request body is ignored.
POST
/
v1
/
webhooks
/
{subscriptionId}
/
deliveries
/
{deliveryId}
/
replay
Replay a delivery
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/replay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/replay"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/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://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/replay")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/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_bodyfalsecurl --request POST \
--url https://sandbox.api.enfinitos.com/v1/webhooks/{subscriptionId}/deliveries/{deliveryId}/replay \
--header 'Authorization: Bearer <token>'{
"ok": true,
"data": {
"replay": {
"ok": true,
"errorMessage": "<string>"
},
"delivery": {
"deliveryId": "<string>",
"subscriptionId": "<string>",
"developerId": "<string>",
"payload": "<string>",
"firstAttemptedAt": "2023-11-07T05:31:56Z",
"lastAttemptedAt": "2023-11-07T05:31:56Z",
"attemptCount": 123,
"httpStatus": 123,
"responseBodyExcerpt": "<string>",
"errorMessage": "<string>",
"nextRetryAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"signatureHeader": "<string>"
}
},
"contractVersion": "<string>"
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Authorizations
API key sent as Authorization: Bearer <api-key>.
Path Parameters
Webhook subscription id.
Webhook delivery id (prefixed dlv_).
⌘I