Skip to main content
PATCH
/
webhooks
curl --request PATCH \
  --url https://api.jetemail.com/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "uuid": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
  "url": "https://example.com/new-webhook"
}
'
{
  "success": true,
  "message": "Webhook updated successfully"
}

Authorizations

Authorization
string
header
required

API key for account management endpoints. Use your api_ prefixed token.

Body

application/json
uuid
string<uuid>
required

UUID of the webhook to update

Example:

"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"

name
string

New webhook name. Only letters, numbers, hyphens, underscores, and spaces allowed.

Maximum string length: 64
Example:

"Updated Webhook Name"

url
string<uri>

New webhook endpoint URL

Example:

"https://example.com/new-webhook"

events
enum<string>[]

New list of event types. Must only include allowed event types.

Minimum array length: 1
Available options:
outbound.delivered,
outbound.bounced,
outbound.rejected,
outbound.deferred,
outbound.spam,
outbound.dropped,
outbound.virus,
outbound.opened,
outbound.clicked,
outbound.complaint,
inbound.received,
inbound.delivered,
inbound.spam,
inbound.blocked
Example:
[
"outbound.delivered",
"outbound.bounced",
"inbound.received"
]
status
enum<integer>

New webhook status: 0 = disabled, 1 = enabled

Available options:
0,
1
Example:

1

filter_users
string[] | null

New filter for outbound events by username. Must be transactional keys or smarthosts you own.

Example:

null

filter_domains
string[] | null

New filter for inbound events by domain. Must be inbound domains you own.

Example:
["example.com"]

Response

Webhook updated successfully

success
boolean
Example:

true

message
string
Example:

"Webhook updated successfully"