REQUEST
curl -X POST https://api.read.entrfy.com/v1/webhook-endpoints \
-H "Authorization: Bearer er_test_ORNEK0000000000000000000000" \
-H "Content-Type: application/json" \
-d '{
"url": "https://hooks.ornek-musteri.example/entrfy",
"events": [
"document.completed",
"document.rejected",
"batch.completed"
],
"description": "Muhasebe sistemi (örnek veri)"
}'
const res = await fetch('https://api.read.entrfy.com/v1/webhook-endpoints', {
method: 'POST',
headers: {
Authorization: 'Bearer er_test_ORNEK0000000000000000000000',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"url": "https://hooks.ornek-musteri.example/entrfy",
"events": [
"document.completed",
"document.rejected",
"batch.completed"
],
"description": "Muhasebe sistemi (örnek veri)"
}),
});
console.log(await res.json());
import requests
res = requests.post(
"https://api.read.entrfy.com/v1/webhook-endpoints",
headers={"Authorization": "Bearer er_test_ORNEK0000000000000000000000", "Content-Type": "application/json"},
json={
"url": "https://hooks.ornek-musteri.example/entrfy",
"events": [
"document.completed",
"document.rejected",
"batch.completed",
],
"description": "Muhasebe sistemi (örnek veri)",
},
)
print(res.json())