Templates

Duplicate a template

Copy a template's draft into a new draft template named with "(copy)" appended. The alias is not copied and nothing is published. Requires the email:send scope.

post/v1/templates/{id}/duplicate

Request

  • Base URL: https://smtpfa.st/api
  • URL: https://smtpfa.st/api/v1/templates/{id}/duplicate
  • Auth: HTTP bearer

Path parameters

idstring required

The template id or alias

Response

The new template

idstring
objectstring
updated_atstring date-time

Not in Resend. The revision this write created.

status'draft' | 'published'

Not in Resend.

published_atstring date-time nullable

Not in Resend.

has_unpublished_versionsboolean

Not in Resend.

Example response

{
  "id": "clx_tpl123",
  "object": "template"
}

Changes

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