curl --request GET \
--url https://api.scrip.dev/v1/webhook-deliveries/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.scrip.dev/v1/webhook-deliveries/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.scrip.dev/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://api.scrip.dev/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 => [
"X-API-Key: <api-key>"
],
]);
$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.scrip.dev/v1/webhook-deliveries/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.scrip.dev/v1/webhook-deliveries/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scrip.dev/v1/webhook-deliveries/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"attempt_count": 1,
"created_at": "2026-01-15T10:30:00Z",
"delivered_at": "2026-01-15T10:30:01Z",
"error_code": "consumer_response_timeout",
"event_type": "balance.credited",
"id": "d1e2f3a4-b5c6-7890-abcd-ef1234567890",
"last_attempt_at": "2026-01-15T10:30:01Z",
"last_error": "connection timed out after 10s",
"last_response_body": "{\"received\":true}",
"last_response_status": 200,
"max_attempts": 8,
"next_attempt_at": "2026-01-15T10:30:00Z",
"resend_seq": 0,
"status": "DELIVERED",
"updated_at": "2026-01-15T10:30:01Z",
"webhook_endpoint_id": "550e8400-e29b-41d4-a716-446655440000",
"webhook_event_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}{
"code": "bad_request",
"details": {
"expected": "<string>",
"field": "<string>",
"fields": [
{
"expected": "<unknown>",
"field": "<string>",
"message": "This field is required",
"reason": "required",
"received": "<string>"
}
],
"reason": "invalid",
"received": "<string>"
},
"message": "Invalid request parameters"
}{
"code": "unauthorized",
"details": {
"expected": "<string>",
"field": "<string>",
"fields": [
{
"expected": "<unknown>",
"field": "<string>",
"message": "This field is required",
"reason": "required",
"received": "<string>"
}
],
"reason": "invalid",
"received": "<string>"
},
"message": "Missing or invalid credentials"
}{
"code": "forbidden",
"details": {
"expected": "<string>",
"field": "<string>",
"fields": [
{
"expected": "<unknown>",
"field": "<string>",
"message": "This field is required",
"reason": "required",
"received": "<string>"
}
],
"reason": "invalid",
"received": "<string>"
},
"message": "Insufficient permissions for this action"
}{
"code": "not_found",
"details": {
"expected": "<string>",
"field": "<string>",
"fields": [
{
"expected": "<unknown>",
"field": "<string>",
"message": "This field is required",
"reason": "required",
"received": "<string>"
}
],
"reason": "invalid",
"received": "<string>"
},
"message": "Resource not found"
}{
"code": "internal_error",
"message": "An internal error occurred"
}Get a delivery
Retrieve a single delivery attempt including response body and error details.
curl --request GET \
--url https://api.scrip.dev/v1/webhook-deliveries/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.scrip.dev/v1/webhook-deliveries/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.scrip.dev/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://api.scrip.dev/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 => [
"X-API-Key: <api-key>"
],
]);
$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.scrip.dev/v1/webhook-deliveries/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.scrip.dev/v1/webhook-deliveries/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scrip.dev/v1/webhook-deliveries/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"attempt_count": 1,
"created_at": "2026-01-15T10:30:00Z",
"delivered_at": "2026-01-15T10:30:01Z",
"error_code": "consumer_response_timeout",
"event_type": "balance.credited",
"id": "d1e2f3a4-b5c6-7890-abcd-ef1234567890",
"last_attempt_at": "2026-01-15T10:30:01Z",
"last_error": "connection timed out after 10s",
"last_response_body": "{\"received\":true}",
"last_response_status": 200,
"max_attempts": 8,
"next_attempt_at": "2026-01-15T10:30:00Z",
"resend_seq": 0,
"status": "DELIVERED",
"updated_at": "2026-01-15T10:30:01Z",
"webhook_endpoint_id": "550e8400-e29b-41d4-a716-446655440000",
"webhook_event_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}{
"code": "bad_request",
"details": {
"expected": "<string>",
"field": "<string>",
"fields": [
{
"expected": "<unknown>",
"field": "<string>",
"message": "This field is required",
"reason": "required",
"received": "<string>"
}
],
"reason": "invalid",
"received": "<string>"
},
"message": "Invalid request parameters"
}{
"code": "unauthorized",
"details": {
"expected": "<string>",
"field": "<string>",
"fields": [
{
"expected": "<unknown>",
"field": "<string>",
"message": "This field is required",
"reason": "required",
"received": "<string>"
}
],
"reason": "invalid",
"received": "<string>"
},
"message": "Missing or invalid credentials"
}{
"code": "forbidden",
"details": {
"expected": "<string>",
"field": "<string>",
"fields": [
{
"expected": "<unknown>",
"field": "<string>",
"message": "This field is required",
"reason": "required",
"received": "<string>"
}
],
"reason": "invalid",
"received": "<string>"
},
"message": "Insufficient permissions for this action"
}{
"code": "not_found",
"details": {
"expected": "<string>",
"field": "<string>",
"fields": [
{
"expected": "<unknown>",
"field": "<string>",
"message": "This field is required",
"reason": "required",
"received": "<string>"
}
],
"reason": "invalid",
"received": "<string>"
},
"message": "Resource not found"
}{
"code": "internal_error",
"message": "An internal error occurred"
}last_response_body (truncated to 4 KB), last_response_status, last_error, error_code, and resend_seq.
Use this to diagnose why a delivery failed. Check last_response_status for HTTP errors, last_error for connection or timeout details, and error_code for stable alerting.
Authorizations
API key passed in the X-API-Key header.
Path Parameters
Delivery ID
Response
Delivery details
Number of delivery attempts made so far
1
When the delivery record was created
"2026-01-15T10:30:00Z"
When the delivery was successfully completed
"2026-01-15T10:30:01Z"
Stable, machine-readable classification of the last failed attempt, e.g. consumer_response_timeout, consumer_5xx, rate_limited (omitted when none)
"consumer_response_timeout"
The event type (e.g. balance.credited)
"balance.credited"
Delivery ID
"d1e2f3a4-b5c6-7890-abcd-ef1234567890"
When the last attempt was made
"2026-01-15T10:30:01Z"
Error message from the last attempt (network errors, timeouts)
"connection timed out after 10s"
Response body from the last attempt (truncated to 4 KB)
"{\"received\":true}"
HTTP status code from the last attempt
200
Maximum attempts before marking as FAILED
8
When the next delivery attempt is scheduled
"2026-01-15T10:30:00Z"
Manual-resend sequence: 0 = the original delivery, 1,2,... = manual resends
0
Delivery status: PENDING, SENDING, DELIVERED, or FAILED
"DELIVERED"
When the delivery record was last updated
"2026-01-15T10:30:01Z"
The endpoint this delivery targets
"550e8400-e29b-41d4-a716-446655440000"
The webhook event that triggered this delivery
"f47ac10b-58cc-4372-a567-0e02b2c3d479"