List template versions
The versions of one template, newest first. Every publish that changes something makes one, and the last 50 are kept.
opensend.templates.versions(id, input?)opensend templates versionsInput
id goes first, on its own, and the rest in one object. One object that holds id works too.
idstringRequiredThe id of the item. Up to 64 characters.
limitintegerHow many items to return, from 1 to 100. Without it you get 25.
offsetintegerHow many items to skip. Use it with
limitto read the next page. Default:0.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"list"Always
list.dataobject[]The items on this page.
data[].object"template_version"Always
template_version.data[].templateIdstringThe id of the template it is a version of.
data[].versionintegerThe number of the version. The first publish is 1.
data[].subjectstringThe subject line of that version.
data[].publishedAtstringWhen that version was published.
data[].livebooleantruefor the version emails are built from now.totalintegerHow many items match in all, on every page together.
hasMorebooleanWhether more items follow this page.