Skip to main content
POST
/
v1
/
email
/
templates
Create Email Template
curl --request POST \
  --url https://api.oviond.com/v1/email/templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "subject": "<string>",
  "message": "<string>",
  "button_text": "<string>",
  "button_top": false
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "account_id": "<string>",
    "name": "<string>",
    "subject": "<string>",
    "message": "<string>",
    "button_top": true,
    "is_default": true,
    "is_published": true,
    "created_at": "<string>",
    "updated_at": "<string>",
    "button_text": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Minimum string length: 1
subject
string
required
Minimum string length: 1
message
string
required
Minimum string length: 1
button_text
string | null
button_top
boolean
default:false

Response

200 - application/json

Template created

success
enum<boolean>
required
Available options:
true
data
object
required