/v1/workspaces/{workspace_id}/domains/{domain_id}/smtp-configAuthGet the per-domain SMTP override (returns null if unset; the workspace default applies in that case).
Path parameters
workspace_id*string · uuidId of the workspace.
domain_id*string · uuidId of the domain.
Response · 200
data*objectNull when this workspace has not configured SMTP.
Example
Request
GET https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/domains/{domain_id}/smtp-config
Authorization: Bearer YOUR_TOKENimport { Mail } from "@productcraft/mail";
// Reads PRODUCTCRAFT_API_KEY from the environment
const mail = new Mail();
const getSmtpConfig = await mail.domains.smtpConfig.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");mail.domains.smtpConfig.retrieve(domainId, options?): Mail.GetSmtpConfig
Response
{
"data": {}
}