Mail API reference

Mail API · Smtp-Config

get/v1/workspaces/{workspace_id}/smtp-configAuth

Get 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 · uuid

Id of the workspace.

Response · 200

data*object

Null when this workspace has not configured SMTP.

Example

Request

GET https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/smtp-config
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": {}
}