List webhooks for a project
curl --request GET \
--url https://api.engagefabric.com/api/v1/webhooksimport requests
url = "https://api.engagefabric.com/api/v1/webhooks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.engagefabric.com/api/v1/webhooks', 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.engagefabric.com/api/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.engagefabric.com/api/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
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.engagefabric.com/api/v1/webhooks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/api/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"webhooks": [
{
"id": "wh_123abc",
"projectId": "proj_456def",
"name": "Player Events Webhook",
"url": "https://api.yourapp.com/webhooks/engagefabric",
"events": [
"player.level_up",
"quest.completed"
],
"isActive": true,
"maxConsecutiveFailures": 10,
"rateLimit": 1000,
"maxRetries": 3,
"retryDelaySeconds": 60,
"consecutiveFailures": 0,
"totalDeliveries": 1500,
"successfulDeliveries": 1480,
"failedDeliveries": 20,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"description": "Sends player level-up events to our rewards service",
"headers": {
"X-Custom-Header": "value"
},
"lastTriggeredAt": "2024-01-15T10:30:00Z",
"lastSuccessAt": "2024-01-15T10:30:00Z",
"lastFailureAt": "2024-01-14T08:00:00Z"
}
],
"total": 5
}Webhooks
List webhooks for a project
GET
/
api
/
v1
/
webhooks
List webhooks for a project
curl --request GET \
--url https://api.engagefabric.com/api/v1/webhooksimport requests
url = "https://api.engagefabric.com/api/v1/webhooks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.engagefabric.com/api/v1/webhooks', 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.engagefabric.com/api/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.engagefabric.com/api/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
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.engagefabric.com/api/v1/webhooks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/api/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"webhooks": [
{
"id": "wh_123abc",
"projectId": "proj_456def",
"name": "Player Events Webhook",
"url": "https://api.yourapp.com/webhooks/engagefabric",
"events": [
"player.level_up",
"quest.completed"
],
"isActive": true,
"maxConsecutiveFailures": 10,
"rateLimit": 1000,
"maxRetries": 3,
"retryDelaySeconds": 60,
"consecutiveFailures": 0,
"totalDeliveries": 1500,
"successfulDeliveries": 1480,
"failedDeliveries": 20,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"description": "Sends player level-up events to our rewards service",
"headers": {
"X-Custom-Header": "value"
},
"lastTriggeredAt": "2024-01-15T10:30:00Z",
"lastSuccessAt": "2024-01-15T10:30:00Z",
"lastFailureAt": "2024-01-14T08:00:00Z"
}
],
"total": 5
}⌘I
