API ReferenceEmail
Create Email Template
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Request Body
application/json
name*string
Length
1 <= lengthsubject*string
Length
1 <= lengthhtmlContent*string
Length
1 <= lengthtextContent?string
variableSchema?
Response Body
application/json
curl -X POST "https://samva.app/api/v1/email/templates" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "subject": "string", "htmlContent": "string" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"slug": "string",
"description": "string",
"category": "transactional",
"supportedChannels": [
"string"
],
"content": "string",
"variableSchema": "string",
"compliance": "string",
"usageCount": -2147483648,
"lastUsedAt": "2019-08-24T14:15:22Z",
"isActive": true,
"isDefault": true,
"version": -2147483648,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}