Skip to main content
POST
/
v1
/
hubs
/
{hub_id}
/
email-templates
/
{template_id}
/
preview
Preview Email Template
curl --request POST \
  --url https://api.member.dev/v1/hubs/{hub_id}/email-templates/{template_id}/preview \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "attributes": {
      "html": "<string>",
      "plain_text": "<string>",
      "subject": "<string>"
    },
    "id": "<string>",
    "type": "<string>",
    "links": {
      "self": "<string>"
    },
    "meta": {},
    "relationships": {}
  },
  "included": [
    "<unknown>"
  ],
  "links": {
    "self": "<string>"
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

hub_id
string
required
template_id
string
required

Response

Successful Response

data
JsonApiResource[EmailTemplatePreviewOut] · object
required
included
any[] | null
meta
Meta · object