Skip to Content
Omnibase

Create or update email template

POST
/api/v1/email/templates

Authorization

headerX-Session-Token<token>

Kratos session JWT token. Alternative to cookie authentication for non-browser clients.

Request Body

application/json
  1. body
html_body*string
subject*string
type*string

Response Body

OK

application/json
  1. response
message*string
template*
Example Request
curl -X POST 'https://api.omnibase.tech/api/v1/email/templates' \  -H 'Content-Type: application/json' \  -d '{  "html_body": "<h1>Welcome!</h1>",  "subject": "Welcome to Test Platform",  "type": "test_welcome"}'
Example Response
{  "message": "string",  "template": {    "created_at": "2019-08-24T14:15:22Z",    "html_body": "string",    "id": "string",    "subject": "string",    "tenant_id": "string",    "type": "string",    "updated_at": "2019-08-24T14:15:22Z"  }}