Retrieve a library template
GET/v1/template-library/{id}
The full design, sample data, and a preview rendered with the sample data in your project’s brand.
Required scope: templates:manage
Parameters
| Name | In | Description |
|---|---|---|
idrequired | path | The library template id. |
Example
curl -X GET 'https://api.sendsend.email/v1/template-library/ID' \
-H "Authorization: Bearer $SENDSEND_API_KEY"Response 200
{
"id": "password-reset",
"object": "library_template",
"name": "Password reset",
"category": "Security",
"subject": "Reset your password",
"sample": {
"reset_url": "https://example.com/reset/abc"
},
"html": "<!doctype html>…",
"text": "RESET YOUR PASSWORD…"
}Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such resource in this project. |
| 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.