Skip to the page

List template versions

The versions of one template, newest first. Every publish that changes something makes one, and the last 50 are kept.

templates_versions
Needs the scopetemplates:read
Only reads

Arguments

  • idstringRequired

    The id of the item. Up to 64 characters.

  • limitinteger

    How many items to return, from 1 to 100. Without it you get 25.

  • offsetinteger

    How many items to skip. Use it with limit to read the next page. Default: 0.

Returns

The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.

  • object"list"

    Always list.

  • dataobject[]

    The items on this page.

  • data[].object"template_version"

    Always template_version.

  • data[].templateIdstring

    The id of the template it is a version of.

  • data[].versioninteger

    The number of the version. The first publish is 1.

  • data[].subjectstring

    The subject line of that version.

  • data[].publishedAtstring

    When that version was published.

  • data[].liveboolean

    true for the version emails are built from now.

  • totalinteger

    How many items match in all, on every page together.

  • hasMoreboolean

    Whether more items follow this page.