v1

latestOpenAPI 3.0.3“Commons Clause” License Condition v1.02026-07-17231343.3 KB
templates

Get template by ID

Returns a single template object

get/templates/{id}

Path parameters

idinteger required

ID of the object

Response

OK

idinteger

The ID of the resource.

created_atstring date-time

The date and time when the resource was created.

updated_atstring date-time

The date and time when the resource was last updated.

namestring

The name of the template.

subject_partstring

The subject part.

html_partstring

The HTML content used in the e-mail campaign.

text_partstring

The text content used in the e-mail campaign.

Example response

{
  "id": 111,
  "name": "Welcome",
  "subject_part": "Welcome to Mailbadger {{name}}!",
  "html_part": "<div>Hello {{name}}, welcome to mailbadger.io</div>",
  "text_part": "Hello {{name}}, welcome to mailbadger.io"
}