Skip to main content
POST
/
v1
/
admin
/
notifications
/
templates
Create notification template
curl --request POST \
  --url https://{operatorDomain}/v1/admin/notifications/templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "ntpl_01h...",
  "channel": "email",
  "body": "<string>",
  "key": "<string>",
  "subject": "<string>",
  "locale": "<string>"
}
'
{
  "id": "ntpl_01h...",
  "channel": "email",
  "body": "<string>",
  "key": "<string>",
  "subject": "<string>",
  "locale": "<string>"
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Body

application/json
id
string
required
Example:

"ntpl_01h..."

channel
string
required
Example:

"email"

body
string
required
key
string
subject
string | null
locale
string | null

Response

201 - application/json

Created template

id
string
required
Example:

"ntpl_01h..."

channel
string
required
Example:

"email"

body
string
required
key
string
subject
string | null
locale
string | null