Skip to main content
GET
AhaSend Go SDK
The AhaSend API returns a campaign template with its content. Access requires templates:read. content is null when the campaign template has no HTML and no text, for example after a create without content. A campaign can copy the campaign template only when it has HTML. The ID of a transactional template answers 404. To read a transactional template, use Get Template.

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

Campaign template ID

Response

Campaign template

A design a campaign copies when it is made from it. A campaign template has no draft, no versions, no subject and no sender; the campaign owns its subject and sender.

object
enum<string>
required

Object type identifier

Available options:
campaign_template
id
string<uuid>
required

Campaign template ID

created_at
string<date-time>
required

When the campaign template was created

updated_at
string<date-time>
required

When the campaign template last changed

name
string
required

Campaign template name, as it appears in the dashboard

editor
enum<string>
required

The editor the template is designed with. It never changes after the template is created.

  • advanced: designed in MJML, with the dashboard's advanced editor.
  • simple: designed with the dashboard's simple editor. Its HTML is made from the design and can be read but not changed through the API.
  • html: an HTML template, uploaded or written by hand.
Available options:
advanced,
simple,
html
content
object | null

The content. Null when the campaign template has neither HTML nor text, as for one created without content. A campaign can be made from the campaign template only once it has HTML. List Campaign Templates leaves this field out; every other operation that returns a CampaignTemplate sets it.