SDK reference · Node SDK

prov.account.setBranding

prov.account.setBranding in Node SDK. Set branding fields (only those passed change; null clears one).

Signature

prov.account.setBranding(params: { name?: string | null; primary?: string | null; secondary?: string | null; accent?: string | null; helpUrl?: string | null; emailFrom?: string | null; emailFromName?: string | null; emailReplyTo?: string | null; }): Promise<AccountBranding>

Parameters

params{ name?: string | null; primary?: string | null; secondary?: string | null; accent?: string | null; helpUrl?: string | null; emailFrom?: string | null; emailFromName?: string | null; emailReplyTo?: string | null; }Required

Request fields

namestring | null
Up to 40 characters, no URL or phone number, never "Provenance".
primarystring | null
#RRGGBB; white text on it reaches 4.5:1.
secondarystring | null
#RRGGBB; the page text on it reaches 7:1, the primary on it 3:1.
accentstring | null
#RRGGBB; 4.5:1 on white and on the secondary colour.
help_urlstring | null
An https link.
email_fromstring | null
An address on one of your verified sending domains; null goes back to ours.
email_from_namestring | null
The sender's display name.
email_reply_tostring | null
A reply-to address on the same domain as email_from.

Returns

Promise<AccountBranding> The branding in effect.

HTTP operation

PUT /v1/account/branding: Set the approval-page branding

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/branding`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "name": "Quillstack",
    "primary": "#4F46E5",
    "secondary": "#EEF0FF",
    "accent": "#0E7490",
    "help_url": "https://help.quillstack.example/approvals"
  }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.