cURL
curl --request POST \ --url https://senderr.dev/api/v1/templates/{id}/render \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "variables": { "name": "John Doe", "email": "[email protected]", "company": "Acme Corp" }, "format": "html" } '
{ "success": true, "html": "<!DOCTYPE html><html><body><h1>Hello John Doe</h1></body></html>" }
Render an email template with provided variables. Returns HTML or React format based on request.
Use your API key from the dashboard. Format: Bearer your-api-key-here
Bearer your-api-key-here
Template ID
Template variables as key-value pairs
Output format
html
react
Template rendered successfully
true
Rendered HTML output (when format=html)
React component code (when format=react)