Skip to main content
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",
    "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"
  }
}

Authorizations

Authorizations
string | header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

templateId
string
required
The unique identifier of the template.Example: "A-abc123def456ghi789jk"

Response

Template retrieved successfully
success
boolean
Indicates if the request was successfulExample: true
data
object
The template object