Get all webhooks
curl --request GET \
--url https://api.sendx.io/api/v1/rest/webhook \
--header 'X-Team-ApiKey: <api-key>'import requests
url = "https://api.sendx.io/api/v1/rest/webhook"
headers = {"X-Team-ApiKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Team-ApiKey': '<api-key>'}};
fetch('https://api.sendx.io/api/v1/rest/webhook', 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.sendx.io/api/v1/rest/webhook",
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-Team-ApiKey: <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://api.sendx.io/api/v1/rest/webhook"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Team-ApiKey", "<api-key>")
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.sendx.io/api/v1/rest/webhook")
.header("X-Team-ApiKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sendx.io/api/v1/rest/webhook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Team-ApiKey"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "webhook_iqj3OR6VbjaO2fohm72MYy",
"enabled": true,
"url": "https://api.example.com/webhooks/all",
"unsubscribed": true,
"dropped": true,
"bounced": true,
"markedSpam": true,
"clicked": true,
"opened": true,
"contactCreated": true,
"created": 1705750200
},
{
"id": "webhook_kQJ17si7GhhaKDsPxyXLxY",
"enabled": false,
"url": "https://api.example.com/webhooks/engagement",
"unsubscribed": false,
"dropped": false,
"bounced": false,
"markedSpam": false,
"clicked": true,
"opened": true,
"contactCreated": false,
"created": 1705663800
}
]{
"status": 401,
"message": "The Team ID or API Key specified is not valid"
}{
"status": "error",
"message": "Internal server error occurred"
}Webhook
Get all webhooks
Retrieves all configured webhooks.
GET
/
webhook
Get all webhooks
curl --request GET \
--url https://api.sendx.io/api/v1/rest/webhook \
--header 'X-Team-ApiKey: <api-key>'import requests
url = "https://api.sendx.io/api/v1/rest/webhook"
headers = {"X-Team-ApiKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Team-ApiKey': '<api-key>'}};
fetch('https://api.sendx.io/api/v1/rest/webhook', 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.sendx.io/api/v1/rest/webhook",
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-Team-ApiKey: <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://api.sendx.io/api/v1/rest/webhook"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Team-ApiKey", "<api-key>")
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.sendx.io/api/v1/rest/webhook")
.header("X-Team-ApiKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sendx.io/api/v1/rest/webhook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Team-ApiKey"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "webhook_iqj3OR6VbjaO2fohm72MYy",
"enabled": true,
"url": "https://api.example.com/webhooks/all",
"unsubscribed": true,
"dropped": true,
"bounced": true,
"markedSpam": true,
"clicked": true,
"opened": true,
"contactCreated": true,
"created": 1705750200
},
{
"id": "webhook_kQJ17si7GhhaKDsPxyXLxY",
"enabled": false,
"url": "https://api.example.com/webhooks/engagement",
"unsubscribed": false,
"dropped": false,
"bounced": false,
"markedSpam": false,
"clicked": true,
"opened": true,
"contactCreated": false,
"created": 1705663800
}
]{
"status": 401,
"message": "The Team ID or API Key specified is not valid"
}{
"status": "error",
"message": "Internal server error occurred"
}📊 Response includes:
- Webhook ID with prefix
- Endpoint URL
- Enabled status
- Event subscriptions
- Creation timestamp
Authorizations
Team API key for authentication. Find your API key in SendX Settings → Team API Key.
Example:
X-Team-ApiKey: your_team_api_key_here
Response
✅ Webhooks retrieved successfully
Example:
"webhook_9l154iiXlZoPo7vngmamee"
Webhook endpoint URL
Example:
"https://api.example.com/webhooks/sendx"
Whether webhook is enabled
Trigger webhook when a contact unsubscribes
Trigger webhook when an email is dropped
Trigger webhook when an email bounces
Trigger webhook when an email is marked as spam
Trigger webhook when a link in the email is clicked
Trigger webhook when an email is opened
Trigger webhook when a new contact is created
Was this page helpful?