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

FieldTypeRequiredDescription
titlestringRequiredTemplate title
subjectstringRequiredEmail subject line
bodystringRequiredEmail body content
eventstringRequiredTrigger event (order_created, order_shipped, etc.)
shopstringRequiredShop identifier
receipent_typestringRequiredRecipient type (customer, admin)
notestringOptionalInternal 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