Skip to main content
GET
/
api
/
v1
/
enterprise
/
eudr
/
webhooks
Python
import agribackup
from agribackup.rest import ApiException

# Initialize Client
configuration = agribackup.Configuration(host="https://live.agribackup.com/api/v1")
configuration.api_key['ApiKeyAuth'] = 'sk_live_YOUR_API_KEY'

with agribackup.ApiClient(configuration) as api_client:
    try:
        api_instance = agribackup.EnterpriseWebhooksApi(api_client)
        response = api_instance.get_webhooks()
        print(response)
    except ApiException as e:
        print("Exception when calling API: %s\n" % e)
import { AgriBackupClient } from '@agribackup/sdk';

// Initialize Client
const client = new AgriBackupClient({
apiKey: 'sk_live_YOUR_API_KEY',
baseUrl: 'https://live.agribackup.com/api/v1'
});

async function execute() {
try {
const response = await client.webhooks.getWebhooks();
console.log(response);
} catch (error) {
console.error(error);
}
}
import com.agribackup.client.*;
import com.agribackup.client.api.*;
import com.agribackup.client.model.*;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://live.agribackup.com/api/v1");
defaultClient.setApiKey("sk_live_YOUR_API_KEY");

EnterpriseWebhooksApi apiInstance = new EnterpriseWebhooksApi(defaultClient);
try {
Object result = apiInstance.getWebhooks();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling API: " + e.getResponseBody());
}
}
}
using System;
using System.Threading.Tasks;
using AgriBackup.SDK.Api;
using AgriBackup.SDK.Client;
using AgriBackup.SDK.Model;

class Program {
static async Task Main() {
Configuration config = new Configuration();
config.BasePath = "https://live.agribackup.com/api/v1";
config.AddApiKey("ApiKeyAuth", "sk_live_YOUR_API_KEY");

var apiInstance = new EnterpriseWebhooksApi(config);
try {
var result = await apiInstance.GetWebhooksAsync();
Console.WriteLine(result);
} catch (ApiException e) {
Console.WriteLine("Exception when calling API: " + e.Message);
}
}
}
curl --request GET \
--url https://live.agribackup.com/api/v1/enterprise/eudr/webhooks \
--header 'X-API-Key: <api-key>'
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://live.agribackup.com/api/v1/enterprise/eudr/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://live.agribackup.com/api/v1/enterprise/eudr/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 => [
"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://live.agribackup.com/api/v1/enterprise/eudr/webhooks"

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))

}
require 'uri'
require 'net/http'

url = URI("https://live.agribackup.com/api/v1/enterprise/eudr/webhooks")

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
{
  "webhookId": "wh_12345",
  "status": "ACTIVE",
  "targetUrl": "https://erp.example.com/agribackup-webhooks",
  "eventTypes": [
    "<string>"
  ]
}
{
"code": "VALIDATION_FAILED",
"message": "Invalid polygon coordinates",
"details": [
{
"code": "INVALID_COORDINATE_CLOSURE",
"field": "features[0].properties.area",
"issue": "Area must be specified in hectares and cannot be negative"
}
]
}
{
"code": "VALIDATION_FAILED",
"message": "Invalid polygon coordinates",
"details": [
{
"code": "INVALID_COORDINATE_CLOSURE",
"field": "features[0].properties.area",
"issue": "Area must be specified in hectares and cannot be negative"
}
]
}
Returns all active webhook endpoint registrations associated with your enterprise organization. The response includes each webhook’s unique identifier, registered target URL, status, and subscribed event types. Cryptographic signing secrets are permanently redacted from list responses. If you need to inspect or replace a secret, use the Rotate Webhook Secret endpoint to generate and retrieve a new one.
import requests

headers = {"X-API-Key": "sk_live_YOUR_API_KEY"}
response = requests.get(
    "https://live.agribackup.com/api/v1/enterprise/eudr/webhooks",
    headers=headers,
)
print(response.json())
const response = await fetch(
  "https://live.agribackup.com/api/v1/enterprise/eudr/webhooks",
  {
    headers: { "X-API-Key": "sk_live_YOUR_API_KEY" },
  }
);
const data = await response.json();
console.log(data);
curl -X GET https://live.agribackup.com/api/v1/enterprise/eudr/webhooks \
  -H "X-API-Key: sk_live_YOUR_API_KEY"

Response Fields

FieldTypeDescription
webhookIdstringUnique identifier for the webhook registration (e.g. wh_12345)
statusstringRegistration status — ACTIVE for live subscriptions
targetUrlstringThe registered HTTPS callback URL
eventTypesstring[]List of compliance event types this webhook is subscribed to

Authorizations

X-API-Key
string
header
required

Enterprise API Key provided via the AgriBackup developer console.

Response

List of active webhooks successfully retrieved

Response containing webhook subscription details (signing secret redacted)

webhookId
string
required

The unique identifier of the webhook registration

Example:

"wh_12345"

status
string
required

Status of registration

Example:

"ACTIVE"

targetUrl
string
required

The registered callback target URL

Example:

"https://erp.example.com/agribackup-webhooks"

eventTypes
string[]
required

Event types subscribed to

Event types subscribed to