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.
PATCH
Overrides the domain's open/click tracking, reply-to, topic defaults, and the brand its mail uses for the settings cascade. An omitted field is left unchanged; null clears it back to the organization default. Returns the saved config.
apiKeyheader
x-api-key<token>id*stringMatch
^dom_[0-9a-hjkmnp-tv-z]{16,24}$application/json- body
shared?boolean|nullopenTracking?boolean|null|nullclickTracking?boolean|null|nullreplyTo?array<>|null|nulltopicId?|null|nullfooterEnabled?boolean|null|nullbrandSlug?|null|nullSuccess
application/json- response
id*EmailDomainIdMatch
^dom_[0-9a-hjkmnp-tv-z]{16,24}$shared*booleanopenTracking*boolean|nullclickTracking*boolean|nullreplyTo*array<string>|nulltopicId*|nullfooterEnabled*boolean|nullbrandSlug*|nullimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.email.updateDomainConfig({
"id": "example"
});Example Response
{
"id": "string",
"shared": true,
"openTracking": true,
"clickTracking": true,
"replyTo": [
"string"
],
"topicId": "string",
"footerEnabled": true,
"brandSlug": "string"
}