List deliveries
curl --request GET \
--url https://qa-api.endl.xyz/api/v0/webhooks/events \
--header 'API-KEY: <api-key>'import requests
url = "https://qa-api.endl.xyz/api/v0/webhooks/events"
headers = {"API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-KEY': '<api-key>'}};
fetch('https://qa-api.endl.xyz/api/v0/webhooks/events', 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://qa-api.endl.xyz/api/v0/webhooks/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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://qa-api.endl.xyz/api/v0/webhooks/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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://qa-api.endl.xyz/api/v0/webhooks/events")
.header("API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-api.endl.xyz/api/v0/webhooks/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Success",
"status": "SUCCESS",
"data": {
"deliveries": [
{
"id": "4d2f6a11-8c73-4b90-9e21-5f0a2c8d1e44",
"eventId": "evt_9f1a4c7b2e08",
"eventType": "payout.completed",
"subscriptionId": "2b1e8f40-3c9a-4d21-9f7e-6a1c0b5d2e34",
"status": "FAILED",
"attemptCount": 5,
"attemptBudget": 5
}
]
},
"errors": []
}Returns delivery attempts, newest first, using cursor pagination.
GET
/
api
/
v0
/
webhooks
/
events
List deliveries
curl --request GET \
--url https://qa-api.endl.xyz/api/v0/webhooks/events \
--header 'API-KEY: <api-key>'import requests
url = "https://qa-api.endl.xyz/api/v0/webhooks/events"
headers = {"API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-KEY': '<api-key>'}};
fetch('https://qa-api.endl.xyz/api/v0/webhooks/events', 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://qa-api.endl.xyz/api/v0/webhooks/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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://qa-api.endl.xyz/api/v0/webhooks/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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://qa-api.endl.xyz/api/v0/webhooks/events")
.header("API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-api.endl.xyz/api/v0/webhooks/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Success",
"status": "SUCCESS",
"data": {
"deliveries": [
{
"id": "4d2f6a11-8c73-4b90-9e21-5f0a2c8d1e44",
"eventId": "evt_9f1a4c7b2e08",
"eventType": "payout.completed",
"subscriptionId": "2b1e8f40-3c9a-4d21-9f7e-6a1c0b5d2e34",
"status": "FAILED",
"attemptCount": 5,
"attemptBudget": 5
}
]
},
"errors": []
}Authorizations
Your partner API key. Requires the webhooks permission, or events for the PULL feed.
Query Parameters
Scope results to one subscription.
Filter by delivery status. Repeatable — ?status=FAILED&status=EXPIRED.
Filter by event type. Repeatable.
Pagination cursor.
Page size, maximum 100.
Required range:
x <= 100Response
A page of deliveries.