Update catch-all configuration
Updates a domain's catch-all webhook endpoint or unknown-address mailbox without disabling catch-all.
Updates a domain's catch-all webhook endpoint or unknown-address mailbox without disabling catch-all. The mailbox must be active, in the same organization, and have an email address on the domain. Omitted fields stay unchanged. endpointId: null removes the webhook endpoint, so unknown addresses reach the configured unknown-address mailbox or are dropped without a bounce when none is set. A webhook endpoint takes precedence over the unknown-address setting.
apiKeyx-api-key<token>application/json- body
domainId*EmailDomainId^dom_[0-9a-hjkmnp-tv-z]{16,24}$endpointId?||The catch-all webhook endpoint. Null removes it without disabling catch-all: unknown addresses reach the unknown-recipient mailbox when configured, otherwise they are dropped without a bounce. Omission leaves the endpoint unchanged.
unknownRecipientMailboxId?||An active mailbox in this organization with an email address on this domain. Receives unknown addresses only when catch-all has no webhook endpoint. Null drops unknown addresses without a bounce; omission leaves the setting unchanged.
Success
application/json- response
success*truetrueimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.email.updateCatchAllConfig({ "domainId": "example"});{ "success": true}Related documentation
Update a block entry
Updates a block entry's reason, notes, active state, or expiry. Use this endpoint to update a block entry through the Samva email API.
Update a domain's send-settings config
Overrides the domain's open/click tracking, reply-to, topic defaults, and the brand its mail uses for the settings cascade.