View as Markdown

SDK reference · Python SDK

prov.account.add_email_domain

prov.account.add_email_domain in Python SDK.

Signature

prov.account.add_email_domain(domain: str) -> Any

Parameters

domainstrRequired

Request fields

domainstringRequired
The domain, like quillstack.example.

Returns

Any The domain, pending until its records are found.

HTTP operation

POST /v1/account/email_domains: Add a sending domain

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/email_domains`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "domain": "quillstack.example" }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.