sendsend.email

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

NameInDescription
idrequiredpathThe 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

StatusCodeWhen
404not_foundNo such resource in this project.
401unauthorizedThe API key is missing, invalid or revoked.
403forbiddenThe key does not have the scope this endpoint needs.

Every error has the same shape. See Errors.