novinzodevelopers
API referenceCore for pluginsEmails

Send Email

POST/api/emails

Queues a plain transactional email in the store's name. Core renders the subject, heading, paragraphs, optional https button and footer into its own template, escaping every field; the plugin supplies no markup. Without a reason, the recipient must be the store's customer or team member; with reason invite or account-notice, any address. Rate-limited per store, with a smaller budget shared by emails sent with a reason and refused sends. A repeated idempotencyKey answers the first send's id when the email is the same and is refused when it differs. Delivered by core's outbox, normally within minutes. Requires the store to have granted the plugin emails:send.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

to*string
Lengthlength <= 254
reason?string

Value in

  • "invite"
  • "account-notice"
idempotencyKey?string
subject*string
preheader?string
heading*string
paragraphs*array<string>
Items1 <= items <= 20
action?
footer?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/emails" \  -H "Content-Type: application/json" \  -d '{    "to": "string",    "subject": "string",    "heading": "string",    "paragraphs": [      "string"    ]  }'
{  "emailId": "string"}