List ready-made templates
GET/v1/template-library
A library of sixty transactional templates, grouped into categories: onboarding, security, e-commerce, WooCommerce (every store email), billing and notifications. Each declares its variables. Add one to your project with “Create a template from the library”.
Required scope: templates:manage
Parameters
| Name | In | Description |
|---|---|---|
categoryoptional | query | Onboarding, Security, E-commerce, WooCommerce, Billing or Notifications. |
Example
curl -X GET 'https://api.sendsend.email/v1/template-library' \
-H "Authorization: Bearer $SENDSEND_API_KEY"Response 200
{
"object": "list",
"categories": [
"Onboarding",
"Security",
"E-commerce",
"Billing",
"Notifications"
],
"data": [
{
"id": "password-reset",
"object": "library_template",
"name": "Password reset",
"category": "Security",
"description": "A reset link that expires.",
"subject": "Reset your password",
"variables": {
"reset_url": {
"type": "string",
"required": true
}
}
}
]
}Errors
| Status | Code | When |
|---|---|---|
| 401 | unauthorized | The API key is missing, invalid or revoked. |
| 403 | forbidden | The key does not have the scope this endpoint needs. |
Every error has the same shape. See Errors.