curl --request POST \
--url https://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver \
--header 'Authorization: Bearer <token>'import requests
url = "https://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver', 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://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver",
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://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver"
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://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver")
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{
"webhook_id": "<string>",
"event_id": "<string>",
"attempt": 6,
"trigger": "manual",
"queued_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_request",
"message": "Test deliveries cannot be redelivered; call POST /v2/webhooks/{id}/test again"
}
}{
"error": {
"code": "not_found",
"message": "Event is no longer available for redelivery (events are retained for a limited time)"
}
}{
"error": {
"code": "webhook_disabled",
"message": "Webhook is disabled; enable it before redelivering"
}
}{
"error": {
"code": "validation_error",
"message": "The patient.date_of_birth field is required",
"request_id": "req_0c1f1f1cd1c84e2f8d4b6a2e9f3b7a11",
"param": "patient.date_of_birth",
"doc_url": "https://docs.tavrn.ai/guides/v2/errors#validation_error"
}
}{
"error": {
"code": "rate_limited",
"message": "Redelivery limit of 60 per hour reached for this webhook"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"request_id": "req_0c1f1f1cd1c84e2f8d4b6a2e9f3b7a11",
"doc_url": "https://docs.tavrn.ai/guides/v2/errors#internal_error"
}
}Redeliver
Queue one new attempt of the delivery’s event to this webhook. Same body, same event id, fresh timestamp and signatures. The attempt is logged with trigger: manual and never counts toward automatic disabling. Requires webhooks:write. Limit: 60 redeliveries per webhook per rolling hour. Events are redeliverable for 30 days; webhook.test deliveries cannot be redelivered (call the test endpoint again).
curl --request POST \
--url https://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver \
--header 'Authorization: Bearer <token>'import requests
url = "https://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver', 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://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver",
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://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver"
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://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://enterprise.tavrn.ai/v2/webhooks/{id}/deliveries/{delivery_id}/redeliver")
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{
"webhook_id": "<string>",
"event_id": "<string>",
"attempt": 6,
"trigger": "manual",
"queued_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_request",
"message": "Test deliveries cannot be redelivered; call POST /v2/webhooks/{id}/test again"
}
}{
"error": {
"code": "not_found",
"message": "Event is no longer available for redelivery (events are retained for a limited time)"
}
}{
"error": {
"code": "webhook_disabled",
"message": "Webhook is disabled; enable it before redelivering"
}
}{
"error": {
"code": "validation_error",
"message": "The patient.date_of_birth field is required",
"request_id": "req_0c1f1f1cd1c84e2f8d4b6a2e9f3b7a11",
"param": "patient.date_of_birth",
"doc_url": "https://docs.tavrn.ai/guides/v2/errors#validation_error"
}
}{
"error": {
"code": "rate_limited",
"message": "Redelivery limit of 60 per hour reached for this webhook"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"request_id": "req_0c1f1f1cd1c84e2f8d4b6a2e9f3b7a11",
"doc_url": "https://docs.tavrn.ai/guides/v2/errors#internal_error"
}
}Authorizations
API key authentication. Use format: Authorization: Bearer tavrn_sk_live_...
Headers
Optional opaque key (1-255 characters, a UUID v4 is recommended) that makes a POST safe to retry. Scoped to your organization and kept for 24 hours. A retry with the same key and the same body replays the original status and body with Idempotent-Replayed: true; the same key with a different body returns 422 idempotency_key_reused_with_different_payload; a retry while the first attempt is still running returns 409 idempotency_key_in_use. Only 2xx and 4xx outcomes are stored - a 5xx releases the key so the retry executes again. See the Idempotent requests guide.
1 - 255Path Parameters
Webhook ID
Delivery attempt ID from the deliveries list