POST
/
api
/
v1
/
templates
Create Template
curl --request POST \
  --url http://localhost:8080/api/v1/templates \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "created_at": "2025-08-28T10:00:00Z",
  "updated_at": "2025-08-28T10:00:00Z",
  "name": "Welcome Email",
  "subject": "Welcome to our support",
  "content": "Thank you for contacting us...",
  "type": "email"
}'
{
  "status": "success",
  "data": {
    "id": 1,
    "created_at": "2025-08-28T10:00:00Z",
    "updated_at": "2025-08-28T10:00:00Z",
    "name": "Welcome Email",
    "subject": "Welcome to our support",
    "content": "Thank you for contacting us...",
    "type": "email"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>

Body

application/json

Template configuration

The body is of type object.

Response

200
application/json

Template created successfully

The response is of type object.