Skip to Content
SendlySendly
API ReferenceTemplates

Restore a template to an earlier version from list_template_versions

POST
/api/templates/{id}/versions/{version}/revert

Restore a template to an earlier version from list_template_versions. The current content is kept as a version.

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

headerAuthorizationBearer <API Key>

API key authentication. Use a sk_* (FULL) or pk_* (SENDING_ONLY) key as the bearer token. Public keys (pk_*) are restricted to the email-send endpoints and the self-serve list subscribe/unsubscribe pair; every other endpoint — event tracking included — answers 403 for them. In scope terms (used by /api/v1/* operations): FULL keys hold every scope; SENDING_ONLY keys hold only emails:send.

id*string
version*string

Response Body

OK

application/json
  1. response
[key: string]?unknown
Example Request
curl -X POST 'https://api.sendly.now/api/templates/string/versions/string/revert'
Example Response
{  "property1": null,  "property2": null}