Templates

Create a template

Create a template. The from domain must already be a verified sending identity for this project — an unverified sender answers 403 forbidden here rather than becoming a campaign that fails at send time.

Requires the templates:write scope — Create, edit, and delete your email templates.

post/api/v1/templates

Request

  • Base URL: https://api.sendly.now
  • URL: https://api.sendly.now/api/v1/templates
  • Auth: one of:
    • HTTP bearer
    • API key in cookie better-auth.session_token
    • OAuth 2 (authorization code, authorization URL https://app.sendly.now/api/auth/oauth2/authorize, token URL https://app.sendly.now/api/auth/oauth2/token, scopes: templates:write)

Request body

bodystring required
descriptionstring nullable
email_category'TRANSACTIONAL' | 'MARKETING' | 'SELF_MANAGED_UNSUBSCRIBE'
fromstring email required

Sender address. Its domain must be verified for this project.

from_namestring nullable
namestring required
reply_tostring email nullable
subjectstring required

Response

The created template

bodystring required
created_atstring date-time required
descriptionstring nullable required
email_category'TRANSACTIONAL' | 'MARKETING' | 'SELF_MANAGED_UNSUBSCRIBE' required
fromstring required
from_namestring nullable required
idstring uuid required
namestring required
reply_tostring nullable required
subjectstring required
updated_atstring date-time required
versioninteger required

Changes

No recorded changes to this operation across all 1 revision of this API.