curl --request GET \
--url https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}', 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://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}",
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://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}"
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://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}")
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_body{
"delivery": {
"id": "whd_01H9Xa8F5dN6mP3q",
"object": "webhookDelivery",
"webhookId": "whk_01H9Xa8F5dN6mP3q",
"eventType": "transaction.settled",
"eventId": "evt_01H9Xa8F5dN6mP3q",
"resourceType": "<string>",
"resourceId": "<string>",
"sequence": 123,
"statusReason": "<string>",
"sendAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"occurredAt": "2023-11-07T05:31:56Z",
"failedAttempts": 123,
"payload": {},
"test": true,
"createdAt": "2023-11-07T05:31:56Z"
},
"attempts": [
{
"attemptNumber": 123,
"statusCode": 123,
"error": "<string>",
"durationMs": 123,
"createdAt": "2023-11-07T05:31:56Z",
"targetUrl": "<string>",
"requestMethod": "<string>",
"requestHeaders": {},
"requestBody": "<string>",
"requestBodyTruncated": true,
"responseHeaders": {},
"responseBody": "<string>",
"responseBodyTruncated": true
}
]
}{
"error": "Unauthorized",
"code": 1000,
"msg": "unauthorized access",
"status": 401,
"cause": "signature"
}{
"error": "Unauthorized",
"code": 1000,
"msg": "unauthorized access",
"status": 401,
"cause": "signature"
}Get a delivery with its attempts
curl --request GET \
--url https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}', 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://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}",
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://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}"
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://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries/{deliveryId}")
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_body{
"delivery": {
"id": "whd_01H9Xa8F5dN6mP3q",
"object": "webhookDelivery",
"webhookId": "whk_01H9Xa8F5dN6mP3q",
"eventType": "transaction.settled",
"eventId": "evt_01H9Xa8F5dN6mP3q",
"resourceType": "<string>",
"resourceId": "<string>",
"sequence": 123,
"statusReason": "<string>",
"sendAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"occurredAt": "2023-11-07T05:31:56Z",
"failedAttempts": 123,
"payload": {},
"test": true,
"createdAt": "2023-11-07T05:31:56Z"
},
"attempts": [
{
"attemptNumber": 123,
"statusCode": 123,
"error": "<string>",
"durationMs": 123,
"createdAt": "2023-11-07T05:31:56Z",
"targetUrl": "<string>",
"requestMethod": "<string>",
"requestHeaders": {},
"requestBody": "<string>",
"requestBodyTruncated": true,
"responseHeaders": {},
"responseBody": "<string>",
"responseBodyTruncated": true
}
]
}{
"error": "Unauthorized",
"code": 1000,
"msg": "unauthorized access",
"status": 401,
"cause": "signature"
}{
"error": "Unauthorized",
"code": 1000,
"msg": "unauthorized access",
"status": 401,
"cause": "signature"
}Authorizations
Token from POST /auth/token
Response
Delivery with attempts
One delivery of one event to one webhook. The id is the partner-facing envelope id and dedup key, stable across retries.
Hide child attributes
Hide child attributes
"whd_01H9Xa8F5dN6mP3q"
"webhookDelivery"
"whk_01H9Xa8F5dN6mP3q"
"transaction.settled"
"evt_01H9Xa8F5dN6mP3q"
Per-resource monotonic counter for consumer-side reordering/gap detection.
Delivery lifecycle state. skipped is recorded but not dispatched (suspended/disabled webhook).
queued, inProgress, delivered, failed, skipped Domain payload of the event, before envelope wrap.
True for a synthesized test delivery.
Hide child attributes
Hide child attributes
Target URL with userinfo stripped and credential-bearing query params redacted.
Immutable snapshot of the partner envelope we POST.
Up to 64 KiB stored; sensitive JSON field names redacted.
Was this page helpful?