cURL
curl --request GET \ --url https://senderr.dev/api/v1/templates/{id}/source \ --header 'Authorization: Bearer <token>'
{ "success": true, "source": { "name": "Welcome Email Template", "description": "A warm welcome email for new users", "code": "import { Html, Body, Container, Text } from '@react-email/components';\n\nexport default function WelcomeEmail({ name = 'there' }) {\n return (\n <Html>\n <Body>\n <Container>\n <Text>Welcome {name}!</Text>\n </Container>\n </Body>\n </Html>\n );\n}" } }
Download the React Email source code for a template in your library.
Use your API key from the dashboard. Format: Bearer your-api-key-here
Bearer your-api-key-here
Template ID
Template source code retrieved successfully
true
Show child attributes