sendsend.email

Create a template from the library

POST/v1/templates/from-library

Adds a ready-made template to your project as version 1, in your brand kit’s colors, font, logo and footer unless you pass apply_brand: false. You can then edit it by publishing new versions.

Required scope: templates:manage

Request body

FieldType
library_idrequiredstring
idrequiredstring
nameoptionalstring
apply_brandoptionalboolean

Unknown fields are rejected, so a typo never silently does nothing.

Example

curl -X POST 'https://api.sendsend.email/v1/templates/from-library' \
  -H "Authorization: Bearer $SENDSEND_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "library_id": "password-reset",
  "id": "reset"
}'

Response 201

{
  "object": "template",
  "id": "reset",
  "version": 1,
  "from": "password-reset"
}

Errors

StatusCodeWhen
400validation_errorThe request body or parameters are invalid. The message says which field.
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.