Get Webhook Deliveries
curl --request GET \
--url https://api.example.com/api/v1/jobs/{task_id}/deliveriesimport requests
url = "https://api.example.com/api/v1/jobs/{task_id}/deliveries"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/jobs/{task_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/api/v1/jobs/{task_id}/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/api/v1/jobs/{task_id}/deliveries"
req, _ := http.NewRequest("GET", url, nil)
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/api/v1/jobs/{task_id}/deliveries")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/jobs/{task_id}/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Jobs & Webhooks
Get Webhook Deliveries
Check the delivery status of webhooks for a task. Returns a list of delivery attempts with status, response code, and timestamps.
Useful for debugging “I didn’t receive my webhook” scenarios.
Webhook Verification
Every webhook includes two headers for security:
X-TDA-Delivery-ID— Unique delivery ID. Use this to deduplicate retries.X-TDA-Signature— HMAC-SHA256 signature of the raw request body.
To verify a webhook is authentic, compute the HMAC of the raw body using your webhook signing secret and compare:
import hmac, hashlib
def verify_webhook(raw_body: bytes, signature_header: str, secret: str) -> bool:
expected = "sha256=" + hmac.new(
secret.encode(), raw_body, hashlib.sha256
).hexdigest()
return hmac.compare_digest(expected, signature_header)
# In your webhook handler:
is_valid = verify_webhook(
raw_body=request.body(),
signature_header=request.headers["X-TDA-Signature"],
secret="your-webhook-signing-secret",
)
Retry Policy
Failed deliveries are retried automatically: 3 immediate retries, then background retries at 1m, 5m, 15m, 30m, 1h, 2h, 4h (8 total attempts). 4xx responses are treated as permanent failures and are not retried.
Delivery statuses: pending, delivered, failed (will retry), dead (exhausted).
GET
/
api
/
v1
/
jobs
/
{task_id}
/
deliveries
Get Webhook Deliveries
curl --request GET \
--url https://api.example.com/api/v1/jobs/{task_id}/deliveriesimport requests
url = "https://api.example.com/api/v1/jobs/{task_id}/deliveries"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/jobs/{task_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/api/v1/jobs/{task_id}/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/api/v1/jobs/{task_id}/deliveries"
req, _ := http.NewRequest("GET", url, nil)
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/api/v1/jobs/{task_id}/deliveries")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/jobs/{task_id}/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}