List webhook endpoints
curl --request GET \
--url https://api-sandbox.unifystays.com/webhooks/endpoints \
--header 'x-api-key: <api-key>'import requests
url = "https://api-sandbox.unifystays.com/webhooks/endpoints"
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-sandbox.unifystays.com/webhooks/endpoints', 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-sandbox.unifystays.com/webhooks/endpoints",
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-sandbox.unifystays.com/webhooks/endpoints"
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-sandbox.unifystays.com/webhooks/endpoints")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.unifystays.com/webhooks/endpoints")
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{
"data": [
{
"id": "8b95a9e0-4af3-4c6d-92df-84b64256d27f",
"name": "Production booking events",
"url": "https://example.com/webhooks/unifystays",
"status": "ACTIVE",
"event_types": [
"booking.confirmed",
"booking.cancelled"
],
"consecutive_failures": 0,
"last_success_at": "2026-08-08T08:30:00.000Z",
"last_failure_at": null,
"disabled_at": null,
"disabled_reason": null,
"created_at": "2026-08-08T08:00:00.000Z",
"updated_at": "2026-08-08T08:30:00.000Z"
}
]
}Webhook endpoints
List Webhook Endpoints
List webhook endpoints configured for your organization and environment.
GET
/
webhooks
/
endpoints
List webhook endpoints
curl --request GET \
--url https://api-sandbox.unifystays.com/webhooks/endpoints \
--header 'x-api-key: <api-key>'import requests
url = "https://api-sandbox.unifystays.com/webhooks/endpoints"
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-sandbox.unifystays.com/webhooks/endpoints', 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-sandbox.unifystays.com/webhooks/endpoints",
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-sandbox.unifystays.com/webhooks/endpoints"
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-sandbox.unifystays.com/webhooks/endpoints")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.unifystays.com/webhooks/endpoints")
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{
"data": [
{
"id": "8b95a9e0-4af3-4c6d-92df-84b64256d27f",
"name": "Production booking events",
"url": "https://example.com/webhooks/unifystays",
"status": "ACTIVE",
"event_types": [
"booking.confirmed",
"booking.cancelled"
],
"consecutive_failures": 0,
"last_success_at": "2026-08-08T08:30:00.000Z",
"last_failure_at": null,
"disabled_at": null,
"disabled_reason": null,
"created_at": "2026-08-08T08:00:00.000Z",
"updated_at": "2026-08-08T08:30:00.000Z"
}
]
}Returns every non-deleted webhook endpoint owned by the authenticated
organization. Signing secrets are never included.
Use
status, consecutive_failures, last_success_at, and last_failure_at to
monitor endpoint health.⌘I