curl --request POST \
--url https://api.coverwhale.dev/v1/webhook-subscriptions \
--header 'Accept: <accept>' \
--header 'AccessToken: <api-key>' \
--header 'Content-Type: <content-type>' \
--data '
{
"endpoint_url": "https://hooks.yourapp.com/coverwhale",
"event_types": [
"submission.bind_completed",
"submission.canceled",
"submission.public_reply"
]
}
'import requests
url = "https://api.coverwhale.dev/v1/webhook-subscriptions"
payload = {
"endpoint_url": "https://hooks.yourapp.com/coverwhale",
"event_types": ["submission.bind_completed", "submission.canceled", "submission.public_reply"]
}
headers = {
"Content-Type": "<content-type>",
"Accept": "<accept>",
"AccessToken": "<api-key>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Accept: '<accept>', AccessToken: '<api-key>'},
body: JSON.stringify({
endpoint_url: 'https://hooks.yourapp.com/coverwhale',
event_types: ['submission.bind_completed', 'submission.canceled', 'submission.public_reply']
})
};
fetch('https://api.coverwhale.dev/v1/webhook-subscriptions', 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.coverwhale.dev/v1/webhook-subscriptions",
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([
'endpoint_url' => 'https://hooks.yourapp.com/coverwhale',
'event_types' => [
'submission.bind_completed',
'submission.canceled',
'submission.public_reply'
]
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"AccessToken: <api-key>",
"Content-Type: <content-type>"
],
]);
$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.coverwhale.dev/v1/webhook-subscriptions"
payload := strings.NewReader("{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\",\n \"submission.public_reply\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Accept", "<accept>")
req.Header.Add("AccessToken", "<api-key>")
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.coverwhale.dev/v1/webhook-subscriptions")
.header("Content-Type", "<content-type>")
.header("Accept", "<accept>")
.header("AccessToken", "<api-key>")
.body("{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\",\n \"submission.public_reply\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coverwhale.dev/v1/webhook-subscriptions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Accept"] = '<accept>'
request["AccessToken"] = '<api-key>'
request.body = "{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\",\n \"submission.public_reply\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 42,
"company_id": 6042,
"endpoint_url": "https://hooks.yourapp.com/coverwhale",
"event_types": [
"submission.bind_completed",
"submission.canceled"
],
"active": true,
"secret": "whsec_9f2c1e7a4b6d...",
"secret_rotated_at": null,
"created_at": "2026-07-14T12:00:00+00:00",
"updated_at": "2026-07-14T12:00:00+00:00"
}{
"message": "The endpoint url must start with https://.",
"errors": {
"endpoint_url": [
"The endpoint url must start with https://."
]
}
}Create a Webhook Subscription
Register an HTTPS endpoint to receive events for your account’s submissions. The signing secret is returned only in this response (and on rotate-secret) — store it now; it is never shown again. Use it to verify the signature on every delivery.
Subscriptions are scoped to your account: you only ever receive events for submissions your company owns.
curl --request POST \
--url https://api.coverwhale.dev/v1/webhook-subscriptions \
--header 'Accept: <accept>' \
--header 'AccessToken: <api-key>' \
--header 'Content-Type: <content-type>' \
--data '
{
"endpoint_url": "https://hooks.yourapp.com/coverwhale",
"event_types": [
"submission.bind_completed",
"submission.canceled",
"submission.public_reply"
]
}
'import requests
url = "https://api.coverwhale.dev/v1/webhook-subscriptions"
payload = {
"endpoint_url": "https://hooks.yourapp.com/coverwhale",
"event_types": ["submission.bind_completed", "submission.canceled", "submission.public_reply"]
}
headers = {
"Content-Type": "<content-type>",
"Accept": "<accept>",
"AccessToken": "<api-key>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Accept: '<accept>', AccessToken: '<api-key>'},
body: JSON.stringify({
endpoint_url: 'https://hooks.yourapp.com/coverwhale',
event_types: ['submission.bind_completed', 'submission.canceled', 'submission.public_reply']
})
};
fetch('https://api.coverwhale.dev/v1/webhook-subscriptions', 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.coverwhale.dev/v1/webhook-subscriptions",
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([
'endpoint_url' => 'https://hooks.yourapp.com/coverwhale',
'event_types' => [
'submission.bind_completed',
'submission.canceled',
'submission.public_reply'
]
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"AccessToken: <api-key>",
"Content-Type: <content-type>"
],
]);
$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.coverwhale.dev/v1/webhook-subscriptions"
payload := strings.NewReader("{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\",\n \"submission.public_reply\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Accept", "<accept>")
req.Header.Add("AccessToken", "<api-key>")
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.coverwhale.dev/v1/webhook-subscriptions")
.header("Content-Type", "<content-type>")
.header("Accept", "<accept>")
.header("AccessToken", "<api-key>")
.body("{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\",\n \"submission.public_reply\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coverwhale.dev/v1/webhook-subscriptions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Accept"] = '<accept>'
request["AccessToken"] = '<api-key>'
request.body = "{\n \"endpoint_url\": \"https://hooks.yourapp.com/coverwhale\",\n \"event_types\": [\n \"submission.bind_completed\",\n \"submission.canceled\",\n \"submission.public_reply\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 42,
"company_id": 6042,
"endpoint_url": "https://hooks.yourapp.com/coverwhale",
"event_types": [
"submission.bind_completed",
"submission.canceled"
],
"active": true,
"secret": "whsec_9f2c1e7a4b6d...",
"secret_rotated_at": null,
"created_at": "2026-07-14T12:00:00+00:00",
"updated_at": "2026-07-14T12:00:00+00:00"
}{
"message": "The endpoint url must start with https://.",
"errors": {
"endpoint_url": [
"The endpoint url must start with https://."
]
}
}Authorizations
JWT returned as AccessToken by the /authentication endpoint (the Cognito ID token carrying the email claim). It expires after 3600 seconds.
Body
Your HTTPS receiver URL. Must start with https://.
"https://hooks.yourapp.com/coverwhale"
One or more event types to receive. Must contain at least one.
1submission.quoted, submission.bind_completed, submission.endorsement_bound, submission.renewed, submission.pending_cancellation, submission.canceled, submission.reinstated, submission.public_reply [
"submission.bind_completed",
"submission.canceled",
"submission.public_reply"
]
Response
Subscription created — secret is included here only
42
6042
"https://hooks.yourapp.com/coverwhale"
[
"submission.bind_completed",
"submission.canceled"
]
true
Signing secret — shown only here and on rotate-secret.
"whsec_9f2c1e7a4b6d..."
null
"2026-07-14T12:00:00+00:00"
"2026-07-14T12:00:00+00:00"