Resend a webhook delivery
curl --request POST \
--url https://api.bevits.com/v1/webhook-deliveries/{delivery_id}/retry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.bevits.com/v1/webhook-deliveries/{delivery_id}/retry"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.bevits.com/v1/webhook-deliveries/{delivery_id}/retry', 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.bevits.com/v1/webhook-deliveries/{delivery_id}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bevits.com/v1/webhook-deliveries/{delivery_id}/retry"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.bevits.com/v1/webhook-deliveries/{delivery_id}/retry")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bevits.com/v1/webhook-deliveries/{delivery_id}/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"object": "webhook_delivery",
"id": "wdl_0mgc2k1a7000a1b2c3d4e5f6g7",
"endpoint_id": "wep_0mgc2k1a7000a1b2c3d4e5f6g7",
"event_id": "wev_0mgc2k1a7000a1b2c3d4e5f6g7h8",
"event_type": "email.clicked",
"status": "succeeded",
"attempts": 2,
"next_attempt_at": null,
"last_attempt_at": "2026-11-23T14:04:02.000Z",
"last_response_status": 200,
"last_error_code": null,
"succeeded_at": "2026-11-23T14:04:02.180Z",
"created_at": "2026-11-23T14:03:01.120Z",
"event": {
"id": "wev_0mgc2k1a7000a1b2c3d4e5f6g7h8",
"object": "webhook_event",
"type": "email.clicked",
"api_version": "2026-11-23",
"occurred_at": "2026-11-23T14:03:00.000Z",
"created_at": "2026-11-23T14:03:01.120Z",
"livemode": true,
"data": {
"customer": {
"id": "cus_ckabc123",
"email": "ana@exemplo.com.br",
"phone": "+5511988887777",
"external_id": "u_8842"
},
"email": {
"id": "0f5c2a9e",
"subject": "Seu cupom chegou",
"to": "ana@exemplo.com.br"
},
"source": {
"type": "flow",
"id": "flw_ckdef456",
"name": "Boas-vindas"
},
"link": {
"url": "https://loja.exemplo.com.br/cupom"
},
"user_agent": null
}
},
"attempt_log": [
{
"attempt": 1,
"trigger": "automatic",
"url": "https://api.example.com/webhooks/bevits",
"started_at": "2026-11-23T14:03:01.200Z",
"duration_ms": 15000,
"response_status": null,
"response_body": null,
"error_code": "timeout",
"error_message": "No response within 15 seconds."
},
{
"attempt": 2,
"trigger": "automatic",
"url": "https://api.example.com/webhooks/bevits",
"started_at": "2026-11-23T14:04:02.000Z",
"duration_ms": 180,
"response_status": 200,
"response_body": "{\"ok\":true}",
"error_code": null,
"error_message": null
}
]
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "authentication_error",
"message": "Invalid API key.",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "permission_denied",
"code": "missing_scope",
"message": "This API key does not have the required \"write\" scope.",
"param": "scope",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
},
"retry_after": 2
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}Webhooks
Resend a webhook delivery
Sends the delivery again right now, with the same webhook-id, and returns the attempt. Works on a disabled endpoint too, to check a fix before enabling it. Requires an API key with the write scope.
POST
/
v1
/
webhook-deliveries
/
{delivery_id}
/
retry
Resend a webhook delivery
curl --request POST \
--url https://api.bevits.com/v1/webhook-deliveries/{delivery_id}/retry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.bevits.com/v1/webhook-deliveries/{delivery_id}/retry"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.bevits.com/v1/webhook-deliveries/{delivery_id}/retry', 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.bevits.com/v1/webhook-deliveries/{delivery_id}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bevits.com/v1/webhook-deliveries/{delivery_id}/retry"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.bevits.com/v1/webhook-deliveries/{delivery_id}/retry")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bevits.com/v1/webhook-deliveries/{delivery_id}/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"object": "webhook_delivery",
"id": "wdl_0mgc2k1a7000a1b2c3d4e5f6g7",
"endpoint_id": "wep_0mgc2k1a7000a1b2c3d4e5f6g7",
"event_id": "wev_0mgc2k1a7000a1b2c3d4e5f6g7h8",
"event_type": "email.clicked",
"status": "succeeded",
"attempts": 2,
"next_attempt_at": null,
"last_attempt_at": "2026-11-23T14:04:02.000Z",
"last_response_status": 200,
"last_error_code": null,
"succeeded_at": "2026-11-23T14:04:02.180Z",
"created_at": "2026-11-23T14:03:01.120Z",
"event": {
"id": "wev_0mgc2k1a7000a1b2c3d4e5f6g7h8",
"object": "webhook_event",
"type": "email.clicked",
"api_version": "2026-11-23",
"occurred_at": "2026-11-23T14:03:00.000Z",
"created_at": "2026-11-23T14:03:01.120Z",
"livemode": true,
"data": {
"customer": {
"id": "cus_ckabc123",
"email": "ana@exemplo.com.br",
"phone": "+5511988887777",
"external_id": "u_8842"
},
"email": {
"id": "0f5c2a9e",
"subject": "Seu cupom chegou",
"to": "ana@exemplo.com.br"
},
"source": {
"type": "flow",
"id": "flw_ckdef456",
"name": "Boas-vindas"
},
"link": {
"url": "https://loja.exemplo.com.br/cupom"
},
"user_agent": null
}
},
"attempt_log": [
{
"attempt": 1,
"trigger": "automatic",
"url": "https://api.example.com/webhooks/bevits",
"started_at": "2026-11-23T14:03:01.200Z",
"duration_ms": 15000,
"response_status": null,
"response_body": null,
"error_code": "timeout",
"error_message": "No response within 15 seconds."
},
{
"attempt": 2,
"trigger": "automatic",
"url": "https://api.example.com/webhooks/bevits",
"started_at": "2026-11-23T14:04:02.000Z",
"duration_ms": 180,
"response_status": 200,
"response_body": "{\"ok\":true}",
"error_code": null,
"error_message": null
}
]
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "authentication_error",
"message": "Invalid API key.",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "permission_denied",
"code": "missing_scope",
"message": "This API key does not have the required \"write\" scope.",
"param": "scope",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
},
"retry_after": 2
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}Headers
Body
application/json
Send an empty JSON object ({}).
Response
The delivery, with the body sent and the attempts.