curl --request POST \
--url https://api.spenza.com/api/v1.1/webhooks/{id}/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"eventType": "webhook.test"
}
'import requests
url = "https://api.spenza.com/api/v1.1/webhooks/{id}/test"
payload = { "eventType": "webhook.test" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({eventType: 'webhook.test'})
};
fetch('https://api.spenza.com/api/v1.1/webhooks/{id}/test', 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.spenza.com/api/v1.1/webhooks/{id}/test",
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([
'eventType' => 'webhook.test'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.spenza.com/api/v1.1/webhooks/{id}/test"
payload := strings.NewReader("{\n \"eventType\": \"webhook.test\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.spenza.com/api/v1.1/webhooks/{id}/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"eventType\": \"webhook.test\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spenza.com/api/v1.1/webhooks/{id}/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"eventType\": \"webhook.test\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"delivered": true,
"responseCode": 200,
"attemptedAt": "2026-07-31T09:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "This webhook has no endpoint URL configured to send a test event to."
}
}{
"success": false,
"error": {
"code": "WEBHOOK_NOT_FOUND",
"message": "We couldn't find that webhook."
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "ThrottlerException: Too Many Requests"
}
}{
"success": false,
"error": {
"code": "DELIVERY_FAILED",
"message": "We sent the test event but your endpoint didn't respond successfully — check your handler and try again."
}
}Send a test event
Send a signed synthetic test event to the registered endpoint. One
attempt, no retries. The attempt is recorded in
GET /api/v1.1/webhook-deliveries but deliberately does not count
toward the 10-consecutive-failure auto-suspend threshold. Target URL
priority (fixed, not event-derived): messageUrl → callbackMessageUrl
→ voiceUrl → callbackVoiceUrl (voiceStreamUrl is never a test target).
This route has its own stricter rate limit — 10 requests / 60s, on top of (not instead of) the account-wide default — since it POSTs to an arbitrary partner-supplied URL.
curl --request POST \
--url https://api.spenza.com/api/v1.1/webhooks/{id}/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"eventType": "webhook.test"
}
'import requests
url = "https://api.spenza.com/api/v1.1/webhooks/{id}/test"
payload = { "eventType": "webhook.test" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({eventType: 'webhook.test'})
};
fetch('https://api.spenza.com/api/v1.1/webhooks/{id}/test', 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.spenza.com/api/v1.1/webhooks/{id}/test",
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([
'eventType' => 'webhook.test'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.spenza.com/api/v1.1/webhooks/{id}/test"
payload := strings.NewReader("{\n \"eventType\": \"webhook.test\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.spenza.com/api/v1.1/webhooks/{id}/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"eventType\": \"webhook.test\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spenza.com/api/v1.1/webhooks/{id}/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"eventType\": \"webhook.test\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"delivered": true,
"responseCode": 200,
"attemptedAt": "2026-07-31T09:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "This webhook has no endpoint URL configured to send a test event to."
}
}{
"success": false,
"error": {
"code": "WEBHOOK_NOT_FOUND",
"message": "We couldn't find that webhook."
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "ThrottlerException: Too Many Requests"
}
}{
"success": false,
"error": {
"code": "DELIVERY_FAILED",
"message": "We sent the test event but your endpoint didn't respond successfully — check your handler and try again."
}
}Authorizations
Bearer token obtained from POST /api/v1.1/auth/token.
Path Parameters
"wh_69146d70ed68"
Body
No enum — send whatever event name you want to rehearse.
Response
Test attempted (regardless of whether it succeeded — see delivered).

