Get email templates

Get email templates

get
Query parameters
EventIdstringOptional

The event id of the email.

CountryCodestringOptional

The country code of the email. This value is used to determine the country of the email. Following the ISO 3166-1 alpha-2 standard. For example, "US" for United States, "FR" for France, etc.

LanguageCodestringOptional

The language code of the email. This value is used to determine the language of the email. Following the ISO 639-1 standard. For example, "en" for English, "fr" for French, etc.

SubjectstringOptional

The subject of the email.

BodystringOptional

The body of the email.

TagsstringOptional

The tags of the email.

SortDataFieldstringOptional

The sort data field of the pagination.

SortOrderstringOptional

The sort order of the pagination.

PageNumberinteger · int32Optional

The page number of the pagination. Default value is 0.

PageSizeinteger · int32Optional

The page size of the pagination. Default value is 200.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Responses
201
The request was successful.
application/json
get
GET /api/v1/email-templates HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Accept: */*
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "items": [
      {
        "id": "sApKpllz4sAplsmzha",
        "countryCode": "US",
        "languageCode": "en",
        "subject": "Welcome to Our Service!",
        "body": "Dear {{user.email_address}}, welcome to our platform. We are excited to have you on board!",
        "tags": "#Welcome",
        "event": {
          "id": "sApKpllz4sAplsmzha",
          "guid": "00000000-0000-0000-0000-000000000000",
          "groupCodeName": "Example",
          "code": "CODE",
          "name": "Name",
          "description": "Description",
          "trackingLevel": 1,
          "tags": "Tags",
          "zOrder": 1,
          "status": "Active",
          "isSystem": false
        }
      }
    ],
    "totalItems": 1,
    "pageNumber": null,
    "pageSize": null
  },
  "errors": []
}

Last updated

Was this helpful?