Get webhook deliveries
curl --request GET \
--url https://www.referly.so/api/v1/webhook-deliveries/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.referly.so/api/v1/webhook-deliveries/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.referly.so/api/v1/webhook-deliveries/{id}', 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://www.referly.so/api/v1/webhook-deliveries/{id}",
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://www.referly.so/api/v1/webhook-deliveries/{id}"
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://www.referly.so/api/v1/webhook-deliveries/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.referly.so/api/v1/webhook-deliveries/{id}")
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{
"message": {
"id": "msg_acme_20260930_01",
"eventId": "evt_20260930_01",
"eventType": "commission.created",
"channels": [
"ep_acme_events"
],
"payload": {
"id": "evt_20260930_01",
"programId": "prog_acme_partners",
"type": "commission.created",
"schemaVersion": 1,
"createdAt": "2026-09-30T10:00:00.000Z",
"data": {
"commissionId": 4821
}
},
"createdAt": "2026-09-30T10:00:00.000Z"
},
"attempts": {
"data": [
{
"id": "attempt_acme_01",
"msgId": "msg_acme_20260930_01",
"endpointId": "ep_acme_events",
"status": 0,
"statusCode": 200,
"timestamp": "2026-09-30T10:00:02.000Z",
"url": "https://hooks.acme.example/referly",
"request": {
"body": "{\\\"type\\\":\\\"commission.created\\\"}",
"headers": {
"Content-Type": "application/json"
}
},
"response": {
"body": "accepted",
"headers": {
"Content-Type": "text/plain"
}
},
"nextAttempt": null
}
],
"nextCursor": null
}
}{
"error": {
"code": "invalid_json",
"message": "Invalid JSON body",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid, expired or revoked API key",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "insufficient_scope",
"message": "Requires webhook-deliveries:read",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "concurrent_request",
"message": "Concurrent operation; retry the same request",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "body_too_large",
"message": "Request body must be at most 64 KiB",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "validation_error",
"message": "Invalid request parameters",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": "Too many requests. Please slow down.",
"retryAfter": 42
}{
"error": {
"code": "internal_error",
"message": "Request failed",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "webhook_provider_error",
"message": "Webhook provider request failed; retry with the same idempotency key",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}Webhook Deliveries
Get webhook deliveries
Requires webhook-deliveries:read. See Webhook deliveries behavior and common API rules.
GET
/
webhook-deliveries
/
{id}
Get webhook deliveries
curl --request GET \
--url https://www.referly.so/api/v1/webhook-deliveries/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.referly.so/api/v1/webhook-deliveries/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.referly.so/api/v1/webhook-deliveries/{id}', 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://www.referly.so/api/v1/webhook-deliveries/{id}",
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://www.referly.so/api/v1/webhook-deliveries/{id}"
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://www.referly.so/api/v1/webhook-deliveries/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.referly.so/api/v1/webhook-deliveries/{id}")
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{
"message": {
"id": "msg_acme_20260930_01",
"eventId": "evt_20260930_01",
"eventType": "commission.created",
"channels": [
"ep_acme_events"
],
"payload": {
"id": "evt_20260930_01",
"programId": "prog_acme_partners",
"type": "commission.created",
"schemaVersion": 1,
"createdAt": "2026-09-30T10:00:00.000Z",
"data": {
"commissionId": 4821
}
},
"createdAt": "2026-09-30T10:00:00.000Z"
},
"attempts": {
"data": [
{
"id": "attempt_acme_01",
"msgId": "msg_acme_20260930_01",
"endpointId": "ep_acme_events",
"status": 0,
"statusCode": 200,
"timestamp": "2026-09-30T10:00:02.000Z",
"url": "https://hooks.acme.example/referly",
"request": {
"body": "{\\\"type\\\":\\\"commission.created\\\"}",
"headers": {
"Content-Type": "application/json"
}
},
"response": {
"body": "accepted",
"headers": {
"Content-Type": "text/plain"
}
},
"nextAttempt": null
}
],
"nextCursor": null
}
}{
"error": {
"code": "invalid_json",
"message": "Invalid JSON body",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid, expired or revoked API key",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "insufficient_scope",
"message": "Requires webhook-deliveries:read",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "concurrent_request",
"message": "Concurrent operation; retry the same request",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "body_too_large",
"message": "Request body must be at most 64 KiB",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "validation_error",
"message": "Invalid request parameters",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": "Too many requests. Please slow down.",
"retryAfter": 42
}{
"error": {
"code": "internal_error",
"message": "Request failed",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}{
"error": {
"code": "webhook_provider_error",
"message": "Webhook provider request failed; retry with the same idempotency key",
"requestId": "5c1f7a2e-2b39-4c2d-9c31-7a6e0f6a9b21"
}
}Requires
webhook-deliveries:read. See the webhook deliveries guide for behavior and examples.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Select the key's original program or a program provisioned by this exact key. Other owned programs remain inaccessible.
Path Parameters
Query Parameters
Required range:
1 <= x <= 100Provider attempt status; endpointId required on list.
Required range:
0 <= x <= 3Response
Success. Monetary amounts use program currency; see companion documentation for resource fields.
Last modified on October 23, 2026
⌘I