Skip to main content
GET
AhaSend Go SDK
The AhaSend API returns one published version of a template with its content. Access requires templates:read. To bring a version back, use Restore Template Version.

Authorizations

Authorization
string
header
required

API key for authentication. Non-empty Security Requirement values are AhaSend API-key roles. Roles listed within one requirement object are jointly required; separate requirement objects are alternatives.

Path Parameters

account_id
string<uuid>
required

Account ID

template_id
string<uuid>
required

Template ID

version_id
string<uuid>
required

Version ID

Response

Template version

One published version of a template, without its content.

object
enum<string>
required

Object type identifier

Available options:
template_version
id
string<uuid>
required

Version ID

version
integer
required

The version number, counted from 1 for each template

published_at
string<date-time>
required

When the version was published

published_by
object | null
required

Who published the version. Null when this is not known, as for versions made before versions recorded it, or when the user or API key was deleted for good.

subject
string
required

The version's subject

preheader
string
required

The version's preview text

variables
object[]
required

Every variable the version uses

from
object | null
required

The version's default sender. Null when it has none.

Example:
reply_to
object | null
required

The version's default reply-to address. Null when it has none. Its name is always empty.

Example:
content
object | null
required

The version's content. Null when the version has no body.