The Template object
Unique identifier for the template.
Display name of the template.
Client-provided unique identifier. Use this to map templates to records in your own system.
A GalleryContent object containing the message text and optional images. See the Content object section below.
Identifier of the team that owns this template.
Identifier of the user who created the template.
Whether the template is shared with all members of the team.
ISO 8601 timestamp when the template was created.
ISO 8601 timestamp when the template was last updated.
Revision number. Increments on each update.
Whether the template has been archived.
The GalleryContent object
The message body. May contain merge tokens such as
{{first_name}}.Array of GalleryEntry objects representing images attached to the message.
Merge tokens
Merge tokens let you personalize template text using contact field values. When a message is sent, Heymarket replaces each token with the corresponding value from the recipient’s contact record.| Token | Replaced with |
|---|---|
{{first_name}} | Contact’s first name |
{{last_name}} | Contact’s last name |
{{custom_field_name}} | Value of a custom contact field |
Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/template | Create a template |
GET | /v1/template/{id} | Get a template by ID |
PUT | /v1/template/{id} | Update a template |
DELETE | /v1/template/{id} | Delete a template |
POST | /v1/templates | List templates |