curl --request GET \
--url https://api.autosend.com/v1/templates/A-abc123def456ghi789jk \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"templateId": "A-abc123def456ghi789jk",
"templateName": "Welcome Email",
"description": "Welcome email for new users",
"subject": "Welcome to {{companyName}}, {{firstName}}!",
"previewText": "We are glad to have you on board",
"emailTemplate": "<h1>Welcome, {{firstName}}!</h1><p>Thanks for joining {{companyName}}.</p>",
"plainTextTemplate": "Welcome, {{firstName}}! Thanks for joining {{companyName}}.",
"templateType": "transactional",
"builderType": "code",
"dynamicVariables": {
"firstName": "string",
"companyName": "string"
},
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-02-20T14:45:00.000Z"
}
}
Retrieve the details and content of a specific email template by ID using the AutoSend API.
curl --request GET \
--url https://api.autosend.com/v1/templates/A-abc123def456ghi789jk \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"templateId": "A-abc123def456ghi789jk",
"templateName": "Welcome Email",
"description": "Welcome email for new users",
"subject": "Welcome to {{companyName}}, {{firstName}}!",
"previewText": "We are glad to have you on board",
"emailTemplate": "<h1>Welcome, {{firstName}}!</h1><p>Thanks for joining {{companyName}}.</p>",
"plainTextTemplate": "Welcome, {{firstName}}! Thanks for joining {{companyName}}.",
"templateType": "transactional",
"builderType": "code",
"dynamicVariables": {
"firstName": "string",
"companyName": "string"
},
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-02-20T14:45:00.000Z"
}
}
curl --request GET \
--url https://api.autosend.com/v1/templates/A-abc123def456ghi789jk \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"templateId": "A-abc123def456ghi789jk",
"templateName": "Welcome Email",
"description": "Welcome email for new users",
"subject": "Welcome to {{companyName}}, {{firstName}}!",
"previewText": "We are glad to have you on board",
"emailTemplate": "<h1>Welcome, {{firstName}}!</h1><p>Thanks for joining {{companyName}}.</p>",
"plainTextTemplate": "Welcome, {{firstName}}! Thanks for joining {{companyName}}.",
"templateType": "transactional",
"builderType": "code",
"dynamicVariables": {
"firstName": "string",
"companyName": "string"
},
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-02-20T14:45:00.000Z"
}
}
<token>, where <token> is your auth token."A-abc123def456ghi789jk"trueShow child attributes
"A-abc123def456ghi789jk""Welcome Email""Welcome email for new users""Welcome to {{companyName}}, {{firstName}}!""We are glad to have you on board"transactional or marketingExample: "transactional"code or visualExample: "code""2026-01-15T10:30:00.000Z""2026-02-20T14:45:00.000Z"