/v1/workspaces/{workspace_id}/domains/{domain_id}/smtp-config/verify-savedAuthTest the per-domain SMTP override; updates status
Path parameters
workspace_id*string · uuidId of the workspace.
domain_id*string · uuidId of the domain.
Response · 200
ok*booleanTrue when the server accepted the connection and login.
errorobjectThe failure; absent when `ok` is true.
Example
Request
POST https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/domains/{domain_id}/smtp-config/verify-saved
Authorization: Bearer YOUR_TOKENimport { Mail } from "@productcraft/mail";
// Reads PRODUCTCRAFT_API_KEY from the environment
const mail = new Mail();
const smtpVerifyResult = await mail.domains.smtpConfig.verifySaved("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");mail.domains.smtpConfig.verifySaved(domainId, options?): Mail.SmtpVerifyResult
Response
{
"ok": false,
"error": {}
}