Transactional
Share send
VerifiedPOST
/api/v1/transactional/{sendId}/sharePublic link to the rendered email. Body must be non-empty ({} ok). Each call rotates the link.
Path Parameters
sendIdstringrequired
Body Parameters
expiresInHoursinteger1–48, default 48.
Notes
Live 2026-11-03. DOCS DIFFER: the endpoint needs a NON-EMPTY JSON body (no body -> ProblemDetails 400 'A non-empty request body is required.'); send {} for the default or { expiresInHours } (default 48, must be >0 and <=48 else 400 ValidationFailed). Returns 200 { url, expiresAt }. The link is public (no auth) and returns the email's raw HTML (Content-Type text/html). EVERY share call for the same send ROTATES the token: the previous link goes 404. Works for any existing send (even Cancelled/Queued). Unknown send -> 404.
Errors
| Status | Case | Body |
|---|---|---|
| 400 | errorExpiry | {"error": {"code": "ValidationFailed", "message": "expiresIn must be greater than zero and at most 48 hours."}} |
| 400 | errorNoBody | {"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1", "title": "One or more validation errors occurred.", "status": 400, "errors": {"": ["A non-empty request body is required."], "request": ["The request field is required."]}, "traceId": "00-…-…-00"} |
| 404 | errorNotFound | {"error": {"code": "NotFound", "message": "Send not found."}} |
Snippets use the MailCraftApi (C#) and MailCraft (Python) helpers from Introduction → Helpers.