List all template_versions

GET {{baseUrl}}/templates/:tmpl_id/versions

Returns a list of template versions for the passed template_id. The template versions are sorted by creation date, with the most recently created appearing first.

Request Params

KeyDatatypeRequiredDescription
limitnumberHow many results to return.
afterstringA reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the previous_url field in the return response.
beforestringA reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the next_url field in the return response.
include[]stringRequest that the response include the total count by specifying include[]=total_count.
date_createdstringFilter by ISO-8601 date or datetime, e.g. { gt: '2012-01-01', lt: '2012-01-31T12:34:56Z' } where gt is ›, lt is ‹, gte is ≥, and lte is ≤.

RESPONSES

status: OK

{"data":[{"id":"vrsn_4d6ff5d868bf630","description":"Second Version","html":"Second HTML for ","date_created":"2017-11-09T05:09:03.665Z","date_modified":"2018-05-22T22:01:10.479Z","object":"version"},{"id":"vrsn_2a17159c1911919","description":"Test Template","html":"HTML for ","date_created":"2017-11-09T05:08:40.004Z","date_modified":"2018-05-22T22:01:11.309Z","object":"version"}],"object":"list","count":2}