List webhook deliveries
curl --request GET \
--url https://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/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://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/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://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/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://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/deliveries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/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{
"deliveries": [
{
"eventId": "0d9f2b1a-4c3e-4f6a-9b2d-8e7f6a5b4c3d",
"eventType": "employee.consumption.registered",
"status": "succeeded",
"attempts": 1,
"lastAttemptAt": 1753939051,
"responseCode": 200,
"error": null
}
]
}{
"message": "Resource not found"
}{
"message": "Internal server error"
}[DRAFT] List webhook deliveries
GET
/
webhooks
/
subscriptions
/
{subscriptionId}
/
deliveries
List webhook deliveries
curl --request GET \
--url https://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/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://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/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://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/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://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/deliveries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pre-partners-api.cobee.io/api/v3/webhooks/subscriptions/{subscriptionId}/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{
"deliveries": [
{
"eventId": "0d9f2b1a-4c3e-4f6a-9b2d-8e7f6a5b4c3d",
"eventType": "employee.consumption.registered",
"status": "succeeded",
"attempts": 1,
"lastAttemptAt": 1753939051,
"responseCode": 200,
"error": null
}
]
}{
"message": "Resource not found"
}{
"message": "Internal server error"
}Coming soon: The Webhooks API is currently under design review. This documentation describes the target interface and may change before release.
Overview
Retrieves the delivery history of a webhook subscription: which events were sent, whether they were acknowledged, the HTTP status code your endpoint returned, the number of attempts and the last error, if any.Important:Use this endpoint to debug your integration or to recover from an outage on your side: failed deliveries carry the eventpendingdeliveries are still being retried with exponential backoff. A delivery is marked asfailedafter 72 hours of unsuccessful attempts.
id and type, and since consumption events always contain accumulated totals, calling the corresponding GET consumptions endpoint is enough to converge to the current state.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the webhook subscription
Query Parameters
Filter deliveries by status.
Available options:
pending, succeeded, failed Filter deliveries by event type.
Available options:
employee.consumption.registered, company.payroll-cycle.closed, employee.committed-expense.requested, employee.committed-expense.finished, employee.committed-expense.cancelled, employee.committed-expense.payment.executed, employee.committed-expense.payment.cancelled Response
Webhook deliveries successfully retrieved
List of webhook deliveries, most recent first
Show child attributes
Show child attributes