Templates

Create a template

Create a new email template. The from must be on a domain already verified for the project, or be the project's own sandbox address. A sandbox-sender template can be sent only to the project owner, and a campaign or workflow cannot send from it.

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

post/api/templates

Request

  • Base URL: https://api.sendly.now
  • URL: https://api.sendly.now/api/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
emailCategory'TRANSACTIONAL' | 'MARKETING' | 'SELF_MANAGED_UNSUBSCRIBE'
fromstring email required
fromNamestring nullable
namestring required
replyTostring email nullable
subjectstring required

Response

Template created

successtrue required

Changes

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