Get a list of all email templates on this platform

Use the following endpoint to get a list of all email templates created in your platform. This method is paginated and defaults to the first page with 25 templates per page if the paging is not specified.

EndpointPurpose
GET {URI}/emailTemplatesGet a list of all Email Templates on this Platform.

Here are a list of query parameters for when you use GET {URI}/emailTemplates to get a list of all email templates on this Platform:

ParameterData typeDescription
elementsPerBlockint32specify the number of elements in a block.
pageint32specify the page number to return.

See the payload example below:

{
  "page": {
    "number": 0,
    "elementsPerBlock": 0,
    "resultCount": 0,
    "totalCount": 0
  },
  "emailTemplates": [
    {
      "etid": "string",
      "name": "string",
      "fromName": "string",
      "subject": "string",
      "headerImage": "string",
      "headerImageAltText": "string",
      "accentColor": "string",
      "messageBody": "string",
      "closing": "string",
      "customerServiceMessage": "string",
      "accessControls": [
        {
          "type": "PLATFORM",
          "identifier": "string"
        }
      ],
      "defaults": [
        {
          "type": "PLATFORM",
          "identifier": "string"
        }
      ]
    }
  ]
}

The response message for this endpoint is:

  • 200 OK
  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden

Rewards as a Service™ and the RaaS® API are provided by Tango Card, Inc. © 2024 Tango Card, Inc.