Skip to main content
GET
/
client
/
email-templates
/
{id}
Get template by ID
curl --request GET \
  --url http://localhost:8080/api/v1/client/email-templates/{id} \
  --header 'Authorization: <api-key>'
{
  "data": {
    "created_at": "<string>",
    "deleted_at": {
      "time": "<string>",
      "valid": true
    },
    "html_body": "<string>",
    "id": 123,
    "name": "<string>",
    "preview_text": "<string>",
    "source_template": "<unknown>",
    "source_template_id": 123,
    "subject": "<string>",
    "text_body": "<string>",
    "updated_at": "<string>",
    "user_id": 123
  },
  "errors": [
    {
      "condition": "format",
      "error": "Invalid email format",
      "key": "email"
    }
  ],
  "message": "Operation successful",
  "meta": {},
  "success": true
}

Authorizations

Authorization
string
header
required

JWT Bearer token or raw API key via Authorization header

Path Parameters

id
integer
required

Template ID

Response

Template retrieved successfully

data
object
errors
object[]
message
string
Example:

"Operation successful"

meta
object
success
boolean
Example:

true