POST
Auth Required
Create Email Template
Create a new email template for a shop.
https://hoodsly-moc-api.wppool.dev/api/v1/email-templates
Request Body
JSON
{
"title": "New Email Template",
"subject": "Subject with {placeholder}",
"body": "Email body content with {placeholder} support",
"event": "order_created",
"shop": "hoodslyhub",
"receipent_type": "customer",
"note": "Template description/notes"
}
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Required | Template title |
subject | string | Required | Email subject line |
body | string | Required | Email body content |
event | string | Required | Trigger event (order_created, order_shipped, etc.) |
shop | string | Required | Shop identifier |
receipent_type | string | Required | Recipient type (customer, admin) |
note | string | Optional | Internal notes |
Response
201 Created
{
"message": "Email template created successfully",
"template": {
"id": 4,
"title": "New Email Template",
"event": "order_created",
"shop": "hoodslyhub",
"created_at": "2026-01-06T12:00:00Z"
}
}
Request
GET
/api/v1/status
Response