Templates
Get Template
Retrieve the details and content of a specific email template by ID using the AutoSend API.
GET
/
templates
/
{templateId}
curl --request GET \
--url https://api.autosend.com/v1/templates/A-abc123def456ghi789jk \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"templateId": "A-abc123def456ghi789jk",
"projectId": "691adaeef6892e15944d4d96",
"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",
"projectId": "691adaeef6892e15944d4d96",
"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"
}
}
Authorizations
Bearer authentication header of the form Bearer
<token>, where <token> is your auth token.Path Parameters
The unique identifier of the template.Example:
"A-abc123def456ghi789jk"Response
Template retrieved successfullyIndicates if the request was successfulExample:
trueThe template object
Show child attributes
Show child attributes
Unique template identifierExample:
"A-abc123def456ghi789jk"Name of the templateExample:
"Welcome Email"Template descriptionExample:
"Welcome email for new users"Email subject lineExample:
"Welcome to {{companyName}}, {{firstName}}!"Email preview textExample:
"We are glad to have you on board"HTML content of the template
Plain text version of the template
Type of template:
transactional or marketingExample: "transactional"Builder type used:
code or visualExample: "code"Dynamic variables used in the template
ISO 8601 timestamp of creationExample:
"2026-01-15T10:30:00.000Z"The project this template belongs to.
ISO 8601 timestamp of last updateExample:
"2026-02-20T14:45:00.000Z"⌘I
curl --request GET \
--url https://api.autosend.com/v1/templates/A-abc123def456ghi789jk \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"templateId": "A-abc123def456ghi789jk",
"projectId": "691adaeef6892e15944d4d96",
"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"
}
}