Put customer IT email configuration
PUT /v1/it_email_configuration: Put customer IT email configuration.
PUT /
- Scope
environment:write- Auth
- Secret key (
sk_…) - Since
- 1.0
Headers
Section titled “Headers”
Minor version; defaults to the environment’s pin.OhAuthCat-Versionstring
Request body
Section titled “Request body”providerstring Requiredone of
ses,postmark,resend,mailgun,sendgrid,smtpfromstring Requiredmin length 1 · max length 320
sender_domainstring Requiredregionstringmax length 64
smtp_hoststringmax length 253
smtp_portintegerone of
465,587tokenstringmin length 1 · max length 4096
access_key_idstringmin length 1 · max length 128
secret_access_keystringmin length 1 · max length 4096
session_tokenstringmax length 4096
usernamestringmin length 1 · max length 320
passwordstringmin length 1 · max length 4096
templatesarray of ITEmailTemplatemax items 7
Responses
Section titled “Responses”- 200 OK ITEmailConfiguration
- default Any other error, including internal_error. Every code is in the error catalogue. Error
Errors share one shape; see the error code catalogue.
curl -X PUT \ "https://api.ohauthcat.com/v1/it_email_configuration" \ -H "Authorization: Bearer $OHAUTHCAT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "provider": "ses", "from": "example_from", "sender_domain": "cdom_01J9Z3K5V7W8X9Y0Z1A2B3C4D5"}'const response = await fetch("https://api.ohauthcat.com/v1/it_email_configuration", { method: "PUT", headers: { Authorization: `Bearer ${process.env.OHAUTHCAT_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "provider": "ses", "from": "example_from", "sender_domain": "cdom_01J9Z3K5V7W8X9Y0Z1A2B3C4D5" }),});const data = await response.json();import osimport requests
response = requests.put( "https://api.ohauthcat.com/v1/it_email_configuration", headers={"Authorization": f"Bearer {os.environ['OHAUTHCAT_API_KEY']}"}, json={ "provider": "ses", "from": "example_from", "sender_domain": "cdom_01J9Z3K5V7W8X9Y0Z1A2B3C4D5", },)data = response.json(){ "id": "01J9Z3K5V7W8X9Y0Z1A2B3C4D5", "object": "it_email_configuration", "provider": "ses", "from": "example_from", "sender_domain": "cdom_01J9Z3K5V7W8X9Y0Z1A2B3C4D5", "dns_verified": true, "region": "example_region", "smtp_host": "example_smtp_host", "smtp_port": 1, "templates": [ { "category": "setup_invitation", "subject": "example_subject", "text": "example_text", "html": "example_html" } ], "updated_at": "2026-01-15T09:30:00Z"}