API ReferenceTemplates
Render Template
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Request Body
application/json
id*string
Format
uuiddata*
Response Body
application/json
curl -X POST "https://samva.app/api/v1/templates/:id/render" \ -H "Content-Type: application/json" \ -d '{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "data": { "channel": "sms" } }'{
"channel": "string",
"rendered": {
"subject": "string",
"html": "string",
"text": "string"
},
"missingVariables": [
"string"
],
"errors": [
"string"
]
}