Skip to Content
Omnibase

Create or update a system email template

POST
/api/v1/email/system-templates

Authorization

ServiceKeyAuth
headerX-Service-Key<token>

Admin service-to-service key. Trusted for all routes and skips permission checks.

Request Body

application/json
  1. body
html_body*string
name*string
plaintext_body?string
subject*string

Response Body

OK

application/json
  1. response
message*string
template*
Example Request
curl -X POST 'https://api.omnibase.tech/api/v1/email/system-templates' \  -H 'Content-Type: application/json' \  -d '{  "html_body": "<h1>Verify your email</h1>",  "name": "verification",  "subject": "Verify your email"}'
Example Response
{  "message": "string",  "template": {    "created_at": "2019-08-24T14:15:22Z",    "html_body": "string",    "id": "string",    "name": "string",    "plaintext_body": "string",    "subject": "string",    "updated_at": "2019-08-24T14:15:22Z"  }}