Skip to main content
GET
/
templates
/
{id}
/
source
Get Template Source Code
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}"
  }
}

Authorizations

Authorization
string
header
required

Use your API key from the dashboard. Format: Bearer your-api-key-here

Path Parameters

id
string<uuid>
required

Template ID

Response

Template source code retrieved successfully

success
boolean
Example:

true

source
object