List template versions
Read the saved and published versions of a template, newest first.
GET
/v1/emails/templates/{templateId}/versionsAuthorization
Bearer token
- Authorizationrequiredheader
Send your API key as
Bearer YOUR_API_KEY.
Path parameters
templateIdrequiredstringThe template ID.
Query parameters
limitoptionalintegerVersions per response, from
1to100; default50.beforeVersionoptionalintegerReturn only versions numbered below this one. Pass the last
version_numberof the previous response to read older versions.
Versions are returned newest first. Continue with beforeVersion until a response has fewer than limit versions.
Response
application/json200 OK
Each version has the same fields as published_version in Retrieve a template. status is draft for the version being edited, published for the version sends use, and saved for earlier versions.