cURL
curl --request POST \ --url http://localhost/public/v1/email/templates \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "content": "<string>", "content_type": "html", "subject": "<string>" } '
{ "ok": true, "template": { "id": "<string>", "team_id": "<string>", "name": "<string>", "subject": "<string>", "content_type": "<string>", "scope": "<string>", "status": "<string>", "meta": { "json_schema": "<string>", "tags": [ "<string>" ] }, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "content": "<string>", "alt_content": "<string>" } }
Creates a private HTML template for the authenticated team.
Required. Name of the template.
Required. HTML content of the template.
Required. Content type of the template (must be "html").
html
Optional. Subject line for emails using this template.
Show child attributes