/v1/workspaces/{workspace_id}/smtp-config/verify-savedAuthTest the persisted workspace-default SMTP config; updates status
Path parameters
workspace_id*string · uuidId of the workspace.
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}/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.smtpConfig.verifySaved();mail.smtpConfig.verifySaved(options?): Mail.SmtpVerifyResult
Response
{
"ok": false,
"error": {}
}