curl -X PATCH https://api.wirebox.sh/api/v1/webhooks/whk_01J8DEF456GHI789 \
-H "Authorization: Bearer $WIREBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"events": ["email.received", "email.sent", "sms.received"]
}'
from wirebox import Wirebox
with Wirebox() as wirebox:
updated = wirebox.webhooks.update(
"whk_01J8DEF456GHI789",
events=["email.received", "email.sent", "sms.received"]
)
print("Updated events:", updated.events)
import { Wirebox } from "@wirebox-sh/sdk";
const wirebox = new Wirebox();
const updated = await wirebox.webhooks.update("whk_01J8DEF456GHI789", {
events: ["email.received", "email.sent", "sms.received"],
});
console.log("Updated events:", updated.events);
wirebox webhook update whk_01J8DEF456GHI789 \
--events email.received,email.sent,sms.received
{
"id": "whk_01J8DEF456GHI789",
"url": "https://agent.example.com/api/webhooks",
"events": [
"email.received",
"email.sent",
"sms.received"
],
"agent_handle": "eva",
"mailbox_address": "eva@wireboxmail.com",
"auth_token": "updated_secret_token_456",
"has_auth_token": true,
"status": "active",
"created_at": "2026-09-11T10:00:00Z",
"updated_at": "2026-09-11T12:00:00Z"
}
Webhooks
Update Webhook
Update destination URL, subscribed events, or authentication token.
PATCH
/
api
/
v1
/
webhooks
/
{id}
curl -X PATCH https://api.wirebox.sh/api/v1/webhooks/whk_01J8DEF456GHI789 \
-H "Authorization: Bearer $WIREBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"events": ["email.received", "email.sent", "sms.received"]
}'
from wirebox import Wirebox
with Wirebox() as wirebox:
updated = wirebox.webhooks.update(
"whk_01J8DEF456GHI789",
events=["email.received", "email.sent", "sms.received"]
)
print("Updated events:", updated.events)
import { Wirebox } from "@wirebox-sh/sdk";
const wirebox = new Wirebox();
const updated = await wirebox.webhooks.update("whk_01J8DEF456GHI789", {
events: ["email.received", "email.sent", "sms.received"],
});
console.log("Updated events:", updated.events);
wirebox webhook update whk_01J8DEF456GHI789 \
--events email.received,email.sent,sms.received
{
"id": "whk_01J8DEF456GHI789",
"url": "https://agent.example.com/api/webhooks",
"events": [
"email.received",
"email.sent",
"sms.received"
],
"agent_handle": "eva",
"mailbox_address": "eva@wireboxmail.com",
"auth_token": "updated_secret_token_456",
"has_auth_token": true,
"status": "active",
"created_at": "2026-09-11T10:00:00Z",
"updated_at": "2026-09-11T12:00:00Z"
}
Path Parameters
string
required
The unique webhook ID.
Body Parameters
string
New HTTPS destination URL.
string[]
Updated array of subscribed event types.
string
Updated bearer token (or pass
null to remove it).string
Set delivery status to
active or paused.curl -X PATCH https://api.wirebox.sh/api/v1/webhooks/whk_01J8DEF456GHI789 \
-H "Authorization: Bearer $WIREBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"events": ["email.received", "email.sent", "sms.received"]
}'
from wirebox import Wirebox
with Wirebox() as wirebox:
updated = wirebox.webhooks.update(
"whk_01J8DEF456GHI789",
events=["email.received", "email.sent", "sms.received"]
)
print("Updated events:", updated.events)
import { Wirebox } from "@wirebox-sh/sdk";
const wirebox = new Wirebox();
const updated = await wirebox.webhooks.update("whk_01J8DEF456GHI789", {
events: ["email.received", "email.sent", "sms.received"],
});
console.log("Updated events:", updated.events);
wirebox webhook update whk_01J8DEF456GHI789 \
--events email.received,email.sent,sms.received
{
"id": "whk_01J8DEF456GHI789",
"url": "https://agent.example.com/api/webhooks",
"events": [
"email.received",
"email.sent",
"sms.received"
],
"agent_handle": "eva",
"mailbox_address": "eva@wireboxmail.com",
"auth_token": "updated_secret_token_456",
"has_auth_token": true,
"status": "active",
"created_at": "2026-09-11T10:00:00Z",
"updated_at": "2026-09-11T12:00:00Z"
}