curl --request POST \
--url https://api.aws53.cloud/v1/data/webhooks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"url": "https://receiver.example.test/visitors",
"triggerMode": "first_match",
"signaturesEnabled": true,
"maxRequestsPerSecond": 5,
"maxRetries": 3
}
'import requests
url = "https://api.aws53.cloud/v1/data/webhooks"
payload = {
"url": "https://receiver.example.test/visitors",
"triggerMode": "first_match",
"signaturesEnabled": True,
"maxRequestsPerSecond": 5,
"maxRetries": 3
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://receiver.example.test/visitors',
triggerMode: 'first_match',
signaturesEnabled: true,
maxRequestsPerSecond: 5,
maxRetries: 3
})
};
fetch('https://api.aws53.cloud/v1/data/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.aws53.cloud/v1/data/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://receiver.example.test/visitors',
'triggerMode' => 'first_match',
'signaturesEnabled' => true,
'maxRequestsPerSecond' => 5,
'maxRetries' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aws53.cloud/v1/data/webhooks"
payload := strings.NewReader("{\n \"url\": \"https://receiver.example.test/visitors\",\n \"triggerMode\": \"first_match\",\n \"signaturesEnabled\": true,\n \"maxRequestsPerSecond\": 5,\n \"maxRetries\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aws53.cloud/v1/data/webhooks")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://receiver.example.test/visitors\",\n \"triggerMode\": \"first_match\",\n \"signaturesEnabled\": true,\n \"maxRequestsPerSecond\": 5,\n \"maxRetries\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aws53.cloud/v1/data/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://receiver.example.test/visitors\",\n \"triggerMode\": \"first_match\",\n \"signaturesEnabled\": true,\n \"maxRequestsPerSecond\": 5,\n \"maxRetries\": 3\n}"
response = http.request(request)
puts response.read_body{
"id": "11111111-1111-4111-8111-111111111111",
"segmentId": null,
"segmentName": null,
"url": "https://receiver.example.test/visitors",
"signaturesEnabled": true,
"triggerMode": "first_match",
"pixelId": null,
"pixelName": null,
"isActive": true,
"maxRequestsPerSecond": 5,
"maxRetries": 3,
"stats": {
"totalDeliveries": 0,
"successfulDeliveries": 0,
"failedDeliveries": 0,
"successRate": 100,
"lastDeliveredAt": null,
"lastFailureAt": null,
"lastFailureReason": null
},
"createdAt": "2026-01-15T10:00:00Z",
"updatedAt": "2026-01-15T10:00:00Z",
"secret": "whsec_synthetic_documentation_only_00000000000000000000000000000000"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid webhook request"
},
"meta": {
"timestamp": "2026-01-15T10:00:00Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "Missing or invalid API key"
},
"meta": {
"timestamp": "2026-01-15T10:00:00Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "API key revoked or organization lacks visitor Data API access"
},
"meta": {
"timestamp": "2026-01-15T10:00:00Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "Webhook or filter not found in this organization"
},
"meta": {
"timestamp": "2026-01-15T10:00:00Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests, please try again later"
},
"meta": {
"timestamp": "2026-01-15T10:00:00Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}Create webhook endpoint
Create a webhook endpoint for future visitor identifications matching optional segment and pixel filters. Omit both filters to receive all organization identifications. emailGrades defaults to null (all emails, including unknown grades); select one or more of A valid, B catchall, C risky and D invalid to send only those contact addresses. A visitor with no selected address is skipped without consuming a first-match claim. The URL must use HTTPS and cannot target private networks. The signing secret is returned only on creation; delivery is asynchronous. Repeating creation creates another endpoint. Requires an organization API key with visitor Data API access. All webhook operations share 30 requests per 60 seconds per source IP. Dedicated admin API credentials also authorize platform-wide management, including white-label targets; customer bearer/API-key restrictions described above remain unchanged. Existing resource validation and business-state rules still apply.
curl --request POST \
--url https://api.aws53.cloud/v1/data/webhooks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"url": "https://receiver.example.test/visitors",
"triggerMode": "first_match",
"signaturesEnabled": true,
"maxRequestsPerSecond": 5,
"maxRetries": 3
}
'import requests
url = "https://api.aws53.cloud/v1/data/webhooks"
payload = {
"url": "https://receiver.example.test/visitors",
"triggerMode": "first_match",
"signaturesEnabled": True,
"maxRequestsPerSecond": 5,
"maxRetries": 3
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://receiver.example.test/visitors',
triggerMode: 'first_match',
signaturesEnabled: true,
maxRequestsPerSecond: 5,
maxRetries: 3
})
};
fetch('https://api.aws53.cloud/v1/data/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.aws53.cloud/v1/data/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://receiver.example.test/visitors',
'triggerMode' => 'first_match',
'signaturesEnabled' => true,
'maxRequestsPerSecond' => 5,
'maxRetries' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aws53.cloud/v1/data/webhooks"
payload := strings.NewReader("{\n \"url\": \"https://receiver.example.test/visitors\",\n \"triggerMode\": \"first_match\",\n \"signaturesEnabled\": true,\n \"maxRequestsPerSecond\": 5,\n \"maxRetries\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aws53.cloud/v1/data/webhooks")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://receiver.example.test/visitors\",\n \"triggerMode\": \"first_match\",\n \"signaturesEnabled\": true,\n \"maxRequestsPerSecond\": 5,\n \"maxRetries\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aws53.cloud/v1/data/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://receiver.example.test/visitors\",\n \"triggerMode\": \"first_match\",\n \"signaturesEnabled\": true,\n \"maxRequestsPerSecond\": 5,\n \"maxRetries\": 3\n}"
response = http.request(request)
puts response.read_body{
"id": "11111111-1111-4111-8111-111111111111",
"segmentId": null,
"segmentName": null,
"url": "https://receiver.example.test/visitors",
"signaturesEnabled": true,
"triggerMode": "first_match",
"pixelId": null,
"pixelName": null,
"isActive": true,
"maxRequestsPerSecond": 5,
"maxRetries": 3,
"stats": {
"totalDeliveries": 0,
"successfulDeliveries": 0,
"failedDeliveries": 0,
"successRate": 100,
"lastDeliveredAt": null,
"lastFailureAt": null,
"lastFailureReason": null
},
"createdAt": "2026-01-15T10:00:00Z",
"updatedAt": "2026-01-15T10:00:00Z",
"secret": "whsec_synthetic_documentation_only_00000000000000000000000000000000"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid webhook request"
},
"meta": {
"timestamp": "2026-01-15T10:00:00Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "Missing or invalid API key"
},
"meta": {
"timestamp": "2026-01-15T10:00:00Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "API key revoked or organization lacks visitor Data API access"
},
"meta": {
"timestamp": "2026-01-15T10:00:00Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "Webhook or filter not found in this organization"
},
"meta": {
"timestamp": "2026-01-15T10:00:00Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests, please try again later"
},
"meta": {
"timestamp": "2026-01-15T10:00:00Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}Authorizations
Headers
Optional tenant context for admin-key operations without an organization target, such as creating an organization. Defaults to the master tenant. Must match an explicit target organization when both are supplied. Does not limit the key’s platform authority.
1 - 100Target organization for admin-key requests on organization-context routes, including Data API, intent audiences and dashboard routes without an organization path parameter. Required on those routes. When supplied with an organization path parameter, both must identify the same organization; conflicting targets return 400. Does not grant access to customer credentials.
Body
null sends all emails, including unknown grades. Otherwise select one or more grades (A valid, B catchall, C risky, D invalid). Only selected addresses are sent; a visitor with no selected address is skipped.
1 - 4 elementsA, B, C, D Response
Organization webhook created
Webhook creation response with secret (shown only once)
null sends all emails, including unknown grades. Otherwise select one or more grades (A valid, B catchall, C risky, D invalid). Only selected addresses are sent; a visitor with no selected address is skipped.
1 - 4 elementsA, B, C, D Was this page helpful?