Get webhook delivery history
curl --request GET \
--url https://api.example.com/organizations/{organizationId}/webhooks/{id}/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/organizations/{organizationId}/webhooks/{id}/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.example.com/organizations/{organizationId}/webhooks/{id}/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.example.com/organizations/{organizationId}/webhooks/{id}/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.example.com/organizations/{organizationId}/webhooks/{id}/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.example.com/organizations/{organizationId}/webhooks/{id}/deliveries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/organizations/{organizationId}/webhooks/{id}/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_bodyWebhooks
Get Webhook Delivery History
Retrieves delivery history for a webhook. Returns up to 100 recent deliveries with status, response codes, and retry info.
GET
/
organizations
/
{organizationId}
/
webhooks
/
{id}
/
deliveries
Get webhook delivery history
curl --request GET \
--url https://api.example.com/organizations/{organizationId}/webhooks/{id}/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/organizations/{organizationId}/webhooks/{id}/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.example.com/organizations/{organizationId}/webhooks/{id}/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.example.com/organizations/{organizationId}/webhooks/{id}/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.example.com/organizations/{organizationId}/webhooks/{id}/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.example.com/organizations/{organizationId}/webhooks/{id}/deliveries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/organizations/{organizationId}/webhooks/{id}/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_bodyRetrieves delivery history for a webhook. Returns up to 100 recent deliveries with status, response codes, and retry info.
Authentication
This endpoint requires authentication via Bearer token:- Authorization:
Bearer <token>
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organizationId | string (UUID) | Yes | Organization ID |
id | string (UUID) | Yes | Webhook ID |
Response
Returns an array with up to 100 deliveries, newest first. Every delivery has all of these fields; empty values arenull, never omitted.
| Field | Type | Description |
|---|---|---|
id | string (UUID) | Delivery id. It is the X-Webhook-ID header your endpoint received |
webhookId | string (UUID) | Webhook that the delivery belongs to |
eventType | string | Event type, the same value sent in X-Webhook-Event |
payload | object | The body that was sent (or will be sent) to your endpoint. See Webhook Event Payloads |
status | string | pending while attempts remain, success after a 2xx response, failed after the last attempt failed |
attempts | number | Attempts made so far (up to 3) |
responseCode | number | null | HTTP status of the last attempt. null if there was no response (timeout or connection error) or no attempt yet |
responseBody | string | null | Body of the last response, or the error message when there was no response |
createdAt | string | When the delivery was created (ISO 8601). It is the X-Webhook-Timestamp header |
deliveredAt | string | null | When it was delivered successfully. null until then |
Example Request
curl -X GET https://api.timbrix.mx/organizations/550e8400-e29b-41d4-a716-446655440000/webhooks/123e4567-e89b-12d3-a456-426614174000/deliveries \
-H "Authorization: Bearer <your_token>"
import { Timbrix } from "@timbrix/sdk"
const client = new Timbrix({ bearerToken: "<your_token>" })
const deliveries = await client.webhooks.deliveries(
"550e8400-e29b-41d4-a716-446655440000",
"123e4567-e89b-12d3-a456-426614174000"
)
console.log(deliveries)
Example Response
[
{
"id": "0b6f3a52-8f0e-4c1d-9a3b-2e5d7c9f1a40",
"webhookId": "123e4567-e89b-12d3-a456-426614174000",
"eventType": "invoice.cancelled",
"payload": {
"id": "inv_...",
"uuidFiscal": "d3bfbc57-44af-4390-a064-f0afab85e5df",
"motivo": "02",
"folioSustitucion": null,
"environment": "production",
"status": "cancelado"
},
"status": "success",
"attempts": 1,
"responseCode": 200,
"responseBody": "OK",
"createdAt": "2026-11-12T18:04:11.532Z",
"deliveredAt": "2026-11-12T18:04:11.981Z"
},
{
"id": "5c2e9d17-3b4a-4f6e-8a1c-7d9e0f2b3c4d",
"webhookId": "123e4567-e89b-12d3-a456-426614174000",
"eventType": "invoice.stamped",
"payload": {
"id": "inv_...",
"uuidFiscal": "7c3d5e1f-2a4b-4c6d-8e0f-1a2b3c4d5e6f"
},
"status": "pending",
"attempts": 1,
"responseCode": null,
"responseBody": "Webhook request timed out",
"createdAt": "2026-11-12T17:58:02.104Z",
"deliveredAt": null
}
]
Use Cases
- Debug Issues: Investigate why webhooks are failing
- Monitor Health: Track delivery success rates
- Retry Failed: Identify deliveries that need manual retry
- Audit Trail: Review webhook activity history
Common Errors
401 Unauthorized
Authentication required.{
"statusCode": 401,
"message": "Authentication required. Provide a valid bearer token."
}
403 Forbidden
User is not a member of this organization.{
"statusCode": 403,
"message": "Access denied. User is not a member of this organization."
}
404 Not Found
The webhook does not exist, or it belongs to another organization.{
"statusCode": 404,
"message": "Webhook no encontrado",
"error": "NOT_FOUND"
}