Webhooks
List Webhooks
List all webhooks configured for the current workspace.
GET
/
api
/
agent
/
webhooks
List Webhooks
curl --request GET \
--url https://encrata.com/api/agent/webhooks \
--header 'Authorization: Bearer <token>'import requests
url = "https://encrata.com/api/agent/webhooks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://encrata.com/api/agent/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://encrata.com/api/agent/webhooks",
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://encrata.com/api/agent/webhooks"
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://encrata.com/api/agent/webhooks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://encrata.com/api/agent/webhooks")
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{
"id": "<string>",
"workspace_id": "<string>",
"url": "<string>",
"events": [
"<string>"
],
"is_active": true,
"description": "<string>",
"created_by": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}Authentication
Requires an API key in theAuthorization header.
Authorization: Bearer YOUR_API_KEY
Request
No parameters required. Returns all webhooks for the authenticated user’s current workspace.Example request
curl https://encrata.com/api/agent/webhooks \
-H "Authorization: Bearer YOUR_API_KEY"
Response
Returns an array of webhook objects.string
Unique webhook identifier (UUID).
string
The workspace this webhook belongs to.
string
The HTTPS URL that receives webhook deliveries.
string[]
List of event types this webhook is subscribed to.
boolean
Whether the webhook is currently active.
string
Optional description of the webhook.
string
User ID of the webhook creator.
string
ISO 8601 creation timestamp.
string
ISO 8601 last-updated timestamp.
Example response
[
{
"id": "360cb300-d885-4c18-af2c-d259f936bb38",
"workspace_id": "51cdc9d9-203c-4345-b06d-222b560460aa",
"url": "https://example.com/webhook",
"events": ["lookup.completed", "apikey.created"],
"is_active": true,
"description": "Production webhook",
"created_by": "e861d7cb-1d7f-48d9-ab13-9af06a4055cf",
"created_at": "2026-05-02T12:00:00Z",
"updated_at": "2026-05-02T12:00:00Z"
}
]
Was this page helpful?
⌘I
List Webhooks
curl --request GET \
--url https://encrata.com/api/agent/webhooks \
--header 'Authorization: Bearer <token>'import requests
url = "https://encrata.com/api/agent/webhooks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://encrata.com/api/agent/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://encrata.com/api/agent/webhooks",
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://encrata.com/api/agent/webhooks"
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://encrata.com/api/agent/webhooks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://encrata.com/api/agent/webhooks")
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{
"id": "<string>",
"workspace_id": "<string>",
"url": "<string>",
"events": [
"<string>"
],
"is_active": true,
"description": "<string>",
"created_by": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}