List deliveries for a webhook
curl --request GET \
--url https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/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_body{
"data": [
{
"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"
}
],
"hasMore": true,
"cursor": "<string>"
}{
"error": "Unauthorized",
"code": 1000,
"msg": "unauthorized access",
"status": 401,
"cause": "signature"
}Webhooks
List deliveries for a webhook
Returns a paginated list of deliveries for the webhook. Attempts are not included; use get-webhook-delivery to expand a delivery with its attempts.
GET
/
webhooks
/
{webhookId}
/
deliveries
List deliveries for a webhook
curl --request GET \
--url https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/deliveries"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.polygon.technology/v0.11/webhooks/{webhookId}/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_body{
"data": [
{
"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"
}
],
"hasMore": true,
"cursor": "<string>"
}{
"error": "Unauthorized",
"code": 1000,
"msg": "unauthorized access",
"status": 401,
"cause": "signature"
}Authorizations
Token from POST /auth/token
Path Parameters
Query Parameters
Delivery lifecycle state. skipped is recorded but not dispatched (suspended/disabled webhook).
Available options:
queued, inProgress, delivered, failed, skipped Required range:
x <= 100Response
List of deliveries
Hide child attributes
Hide child attributes
Example:
"whd_01H9Xa8F5dN6mP3q"
Example:
"webhookDelivery"
Example:
"whk_01H9Xa8F5dN6mP3q"
Example:
"transaction.settled"
Example:
"evt_01H9Xa8F5dN6mP3q"
Per-resource monotonic counter for consumer-side reordering/gap detection.
Delivery lifecycle state. skipped is recorded but not dispatched (suspended/disabled webhook).
Available options:
queued, inProgress, delivered, failed, skipped Domain payload of the event, before envelope wrap.
True for a synthesized test delivery.
Opaque pagination cursor. Absent on the last page.
Was this page helpful?
⌘I