Newsletters

Preview newsletter draft

post/newsletters/{id}/preview

Request

  • Base URL: https://shipmail.to/api/v1
  • URL: https://shipmail.to/api/v1/newsletters/{id}/preview
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://shipmail.to/api/auth/oauth2/authorize, token URL https://shipmail.to/api/auth/oauth2/token)

Path parameters

idstring required

Headers

X-Shipmail-Organizationstring

OAuth access tokens only. The organization ID this request acts on. Required when the OAuth connection was approved for several organizations (400 validation_error without it); optional with one. An organization the connection was not approved for returns 403 authorization_error. Ignored for API keys, which belong to one organization.

Response

Newsletter preview.

object'newsletter_preview' required
newsletter_idstring required
htmlstring required
archive_htmlstring required
textstring required

Changes

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