Search for email templates by name or other criteria using the AutoSend API.
curl --request GET \
--url 'https://api.autosend.com/v1/templates/search?query=welcome&templateType=transactional&page=1&limit=10' \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"templates": [
{
"templateId": "A-abc123def456ghi789jk",
"templateName": "Welcome Email",
"description": "Welcome email for new users",
"subject": "Welcome to Our Platform!",
"previewText": "We're glad to have you on board",
"templateType": "transactional",
"builderType": "code",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-02-20T14:45:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 1,
"pages": 1
}
}
}
curl --request GET \
--url 'https://api.autosend.com/v1/templates/search?query=welcome&templateType=transactional&page=1&limit=10' \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"templates": [
{
"templateId": "A-abc123def456ghi789jk",
"templateName": "Welcome Email",
"description": "Welcome email for new users",
"subject": "Welcome to Our Platform!",
"previewText": "We're glad to have you on board",
"templateType": "transactional",
"builderType": "code",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-02-20T14:45:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 1,
"pages": 1
}
}
}
<token>, where <token> is your auth token."welcome"transactional, marketingExample: "transactional""Welcome Email""Welcome""A-abc123def456ghi789jk"1Example: 11 - 100Example: 10"createdAt"Example: "createdAt"trueShow child attributes
Show child attributes
"A-abc123def456ghi789jk""Welcome Email""Welcome email for new users""Welcome to Our Platform!""We're glad to have you on board""transactional""code""2026-01-15T10:30:00.000Z""2026-02-20T14:45:00.000Z"curl --request GET \
--url 'https://api.autosend.com/v1/templates/search?query=welcome&templateType=transactional&page=1&limit=10' \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"templates": [
{
"templateId": "A-abc123def456ghi789jk",
"templateName": "Welcome Email",
"description": "Welcome email for new users",
"subject": "Welcome to Our Platform!",
"previewText": "We're glad to have you on board",
"templateType": "transactional",
"builderType": "code",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-02-20T14:45:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 1,
"pages": 1
}
}
}