Get a webhook
curl --request GET \
--url https://api.fyatu.com/api/v3.20/webhooks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3.20/webhooks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fyatu.com/api/v3.20/webhooks/{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.fyatu.com/api/v3.20/webhooks/{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 => [
"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://api.fyatu.com/api/v3.20/webhooks/{id}"
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://api.fyatu.com/api/v3.20/webhooks/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3.20/webhooks/{id}")
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{
"success": true,
"status": 200,
"message": "Webhook retrieved",
"data": {
"webhookId": "whk_01HXYZ7777ABCDEF4444",
"url": "https://yourapp.com/webhooks/fyatu",
"description": "Production card events",
"events": [
"CARD_ISSUED",
"TRANSACTION_AUTHORIZED"
],
"status": "ACTIVE",
"secretPrefix": "whsec_a1b2c3",
"failureCount": 0,
"lastDeliveryAt": "2026-05-22T14:30:00Z",
"lastDeliveryStatus": "SUCCESS",
"totalDeliveries": 45,
"totalFailures": 0,
"createdAt": "2026-05-01T09:00:00Z",
"updatedAt": "2026-05-10T14:23:00Z"
},
"meta": {
"requestId": "req_a1b2c3d4e5f6a7b8c9d0e1f2",
"platform": "Fyatu CaaS",
"timestamp": "2026-05-22T15:00:00Z"
}
}Webhooks
Get Webhook
Retrieve full details and delivery statistics for a webhook endpoint. GET /webhooks/. Requires webhooks:read scope.
GET
/
webhooks
/
{id}
Get a webhook
curl --request GET \
--url https://api.fyatu.com/api/v3.20/webhooks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3.20/webhooks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fyatu.com/api/v3.20/webhooks/{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.fyatu.com/api/v3.20/webhooks/{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 => [
"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://api.fyatu.com/api/v3.20/webhooks/{id}"
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://api.fyatu.com/api/v3.20/webhooks/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3.20/webhooks/{id}")
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{
"success": true,
"status": 200,
"message": "Webhook retrieved",
"data": {
"webhookId": "whk_01HXYZ7777ABCDEF4444",
"url": "https://yourapp.com/webhooks/fyatu",
"description": "Production card events",
"events": [
"CARD_ISSUED",
"TRANSACTION_AUTHORIZED"
],
"status": "ACTIVE",
"secretPrefix": "whsec_a1b2c3",
"failureCount": 0,
"lastDeliveryAt": "2026-05-22T14:30:00Z",
"lastDeliveryStatus": "SUCCESS",
"totalDeliveries": 45,
"totalFailures": 0,
"createdAt": "2026-05-01T09:00:00Z",
"updatedAt": "2026-05-10T14:23:00Z"
},
"meta": {
"requestId": "req_a1b2c3d4e5f6a7b8c9d0e1f2",
"platform": "Fyatu CaaS",
"timestamp": "2026-05-22T15:00:00Z"
}
}Overview
Returns the full details for a single webhook endpoint, including delivery health statistics.Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The webhook ID (prefix whk_) |
Example
curl https://api.fyatu.com/api/v3.20/webhooks/whk_01HXYZ7777ABCDEF4444 \
-H "Authorization: Bearer $FYATU_API_KEY"
const resp = await fetch(
'https://api.fyatu.com/api/v3.20/webhooks/whk_01HXYZ7777ABCDEF4444',
{ headers: { 'Authorization': `Bearer ${process.env.FYATU_API_KEY}` } }
);
const { data: wh } = await resp.json();
console.log('Status:', wh.status);
console.log('Total deliveries:', wh.totalDeliveries);
console.log('Total failures:', wh.totalFailures);
import os, requests
resp = requests.get(
'https://api.fyatu.com/api/v3.20/webhooks/whk_01HXYZ7777ABCDEF4444',
headers={'Authorization': f'Bearer {os.environ["FYATU_API_KEY"]}'}
)
wh = resp.json()['data']
print('Status:', wh['status'])
print('Total deliveries:', wh['totalDeliveries'])
print('Total failures:', wh['totalFailures'])
Success Response (200)
{
"success": true,
"status": 200,
"message": "Webhook retrieved",
"data": {
"webhookId": "whk_01HXYZ7777ABCDEF4444",
"url": "https://yourapp.com/webhooks/fyatu",
"description": "Production card events",
"events": [
"CARD_ISSUED",
"CARD_FUNDED",
"TRANSACTION_AUTHORIZED",
"TRANSACTION_DECLINED",
"CARDHOLDER_KYC_APPROVED",
"CARDHOLDER_KYC_REJECTED"
],
"status": "ACTIVE",
"secretPrefix": "whsec_a1b2c3",
"failureCount": 0,
"lastDeliveryAt": "2026-05-22T14:30:00Z",
"lastDeliveryStatus": "SUCCESS",
"totalDeliveries": 142,
"totalFailures": 1,
"createdAt": "2026-05-01T09:00:00Z",
"updatedAt": "2026-05-22T14:30:00Z"
},
"meta": {
"requestId": "req_01HXY123456ABCDEF",
"platform": "Fyatu CaaS",
"timestamp": "2026-05-22T14:35:00Z"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
WEBHOOK_NOT_FOUND | 404 | Webhook does not exist or belongs to another business/environment |
INSUFFICIENT_SCOPE | 403 | Key lacks webhooks:read scope |
Authorizations
API key from the FYATU CaaS portal. Pass as Authorization: Bearer <key>.
Path Parameters
⌘I

