Admin Emails

Send one real test email

Sends the rendered template to a single address from the real sender, on the template's real message stream, with the subject unmodified. It is a real email: use an address you control. Nothing is written to the send log, no activity event is emitted, and no account's once-per-template slot is consumed — so this can never stop a real recipient from receiving the genuine email later.

post/stats/admin-emails/test-send

Request

  • Base URL: https://api.nippy.host
  • URL: https://api.nippy.host/stats/admin-emails/test-send
  • Auth: bearer (a scheme the document does not define)

Request body

template'welcome' | 'agent_welcome' | 'unblock' | 'update_lesson' | 'trial_tips' | 'activation_ask' | 'paid_activation' | 'first_visitors' | 'preview_expiring' | 'payment_failed' | 'plan_ended_unpaid' required

Which lifecycle template to render. Retired keys are rejected — they have no template function.

tostring email required

Recipient of the single test email. Any address — the send is real, from the real sender, on the real message stream.

Example request

{
  "template": "welcome",
  "context": {
    "productUrl": "https://nippy.host",
    "siteId": "11111111-1111-4111-8111-111111111111",
    "siteContent": "pdf",
    "siteUrl": "https://ada.nippy.site",
    "siteHost": "ada.nippy.site",
    "planName": "Pro",
    "viewCount": 14,
    "activityFrom": "14 September",
    "activityTo": "14 October",
    "previewHost": "brave-otter-4f2.preview.nippy.site",
    "previewUrl": "https://brave-otter-4f2.preview.nippy.site",
    "chargeAmount": "$8",
    "invoiceUrl": "https://invoice.stripe.com/i/acct_sample/test_sample",
    "sitesAffected": 2,
    "unsubscribeUrl": "https://api.nippy.host/lifecycle/unsubscribe?uid=…&sig=sample-signature",
    "companyName": "Nippy",
    "companyAddress": "1 Example Street, London"
  },
  "to": "jamie@example.com"
}

Response

template'welcome' | 'agent_welcome' | 'unblock' | 'make_it_yours' | 'update_lesson' | 'trial_tips' | 'trial_ending' | 'activation_ask' | 'feedback_ask' | 'week_one_upsell' | 'paid_activation' | 'first_visitors' | 'preview_expiring' | 'payment_failed' | 'plan_ended_unpaid' required
tostring required
subjectstring required
stream'broadcast' | 'transactional' required
messageIdstring required

Postmark's message id for the send.

Example response

{
  "template": "welcome",
  "to": "jamie@example.com",
  "subject": "You're all set — one thing you might not know",
  "stream": "broadcast",
  "messageId": "0a129aee-e1cd-480d-b08d-4f48548ff48d"
}

Changes

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