Template

Returns the list of all or some templates of the account.

You can iterate thru large list using "offset" and "limit" parameters. When less than "limit" templates are returned then the end of list is reached.

post/template/list.json

Request

  • Base URL: https://api.unione.io/en/transactional/api/v1
  • URL: https://api.unione.io/en/transactional/api/v1/template/list.json
  • Auth: API key in header X-API-KEY

Request body

limitinteger

Limits the number of templates returned, default is 50.

offsetinteger

Index of the first template in the list, starting with 0.

Response

Template list returned successfully.

status'success' required

"success" string

Example response

{
  "templates": [
    {
      "editor_type": "html",
      "template_engine": "velocity",
      "body": {
        "html": "<b>Hello, &#7b;&#7b;to_name&#7c;&#7c;</b>",
        "plaintext": "Hello, &#7b;&#7b;to_name&#7c;&#7c;",
        "amp": "<!doctype html><html amp4email><head> <meta charset=\"utf-8\"><script async src=\"https://cdn.ampproject.org/v0.js\"></script> <style amp4email-boilerplate>body{visibility:hidden}</style></head><body> Hello, AMP4EMAIL world.</body></html>"
      },
      "subject": "UniOne test email ",
      "from_name": "John Smith",
      "reply_to": "email@example.com",
      "reply_to_name": "John Smith",
      "headers": {
        "X-MyHeader": "some data",
        "Test-List-Unsubscribe": "<mailto: unsubscribe@example.com?subject=unsubscribe>, <http://www.example.com/unsubscribe/&#7b;&#7b;CustomerId&#7c;&#7c;>"
      },
      "attachments": [
        {
          "type": "text/plain",
          "name": "readme.txt",
          "content": "SGVsbG8sIHdvcmxkIQ=="
        }
      ],
      "inline_attachments": [
        {
          "type": "image/gif",
          "name": "IMAGECID1",
          "content": "R0lGODdhAwADAIABAP+rAP///ywAAAAAAwADAAACBIQRBwUAOw=="
        }
      ],
      "user_id": 11344,
      "project_id": "6123462132634",
      "project_name": "Project 1A"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.