Emails

Create a share link for a sent email

Mint a public, expiring link to the rendered view of one sent email (the stored HTML or text body, in a sandboxed frame). Nothing is stored; the link stops working when it expires. Default lifetime 7 days, maximum 30. Requires the email:read scope.

post/v1/emails/{id}/share

Request

  • Base URL: https://smtpfa.st/api
  • URL: https://smtpfa.st/api/v1/emails/{id}/share
  • Auth: HTTP bearer

Path parameters

idstring required

The email ID (e.g. email_abc123)

Request body

expires_ininteger

Lifetime in seconds (60 to 2592000)

Response

Share link

objectstring
idstring
urlstring uri
expires_atstring date-time

Example response

{
  "object": "share"
}

Changes

No recorded changes to this operation across all 1 revision of this API.