/v1/workspaces/{workspace_id}/smtp-configAuthGet the workspace-default SMTP config (returns null if unset). Per-domain overrides live under /workspaces/:id/domains/:domainId/smtp-config.
Path parameters
workspace_id*string · uuidId of the workspace.
Response · 200
data*objectNull when this workspace has not configured SMTP.
Example
Request
GET https://api.mail.productcraft.co/v1/workspaces/{workspace_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.smtpConfig.retrieve();mail.smtpConfig.retrieve(options?): Mail.GetSmtpConfig
Response
{
"data": {}
}