curl --request GET \
--url https://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts \
--header 'Authorization: Bearer <token>'import requests
url = "https://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts', 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://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts",
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://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts"
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://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts")
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": "<string>",
"event_id": "<string>",
"status": "succeeded",
"response_status": 123,
"response": "<string>",
"duration_ms": 123,
"created_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"limit": 50,
"cursor": "<string>",
"hasMore": true
}
}List webhook attempts
List delivery attempts for one endpoint event, including receiver responses.
Use when you need to diagnose receiver failures or inspect retry history.
Returns A page of attempts with status, response, duration and continuation cursor.
Errors ACCOUNT_SUSPENDED, API_KEY_REVOKED, AUTHENTICATION_REQUIRED, BRAND_ID_REQUIRED, BRAND_NOT_FOUND, BRAND_SCOPE_MISMATCH, INSUFFICIENT_PERMISSIONS, INSUFFICIENT_ROLE, INTERNAL_ERROR, INVALID_API_KEY, INVALID_REQUEST, NOT_FOUND, RATE_LIMITED, SERVICE_UNAVAILABLE.
curl --request GET \
--url https://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts \
--header 'Authorization: Bearer <token>'import requests
url = "https://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts', 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://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts",
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://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts"
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://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://brew.new/api/v1/webhooks/{webhookId}/events/{eventId}/attempts")
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": "<string>",
"event_id": "<string>",
"status": "succeeded",
"response_status": 123,
"response": "<string>",
"duration_ms": 123,
"created_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"limit": 50,
"cursor": "<string>",
"hasMore": true
}
}Authorizations
Send your Brew API key as Authorization: Bearer brew_xxx.
Headers
The brand this request acts on. REQUIRED for organization-scoped credentials (otherwise 400 BRAND_ID_REQUIRED — there is no default brand); list ids with GET /v1/brands. Brand-scoped credentials may omit it, and sending a different brand returns 403 BRAND_SCOPE_MISMATCH. A brand outside your organization returns 404 BRAND_NOT_FOUND.
1 - 64Query Parameters
Page size (1-100). Defaults to 100.
1 <= x <= 10050
1 - 512Was this page helpful?