Get email templates
The event id of the email.
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.
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.
The subject of the email.
The body of the email.
The tags of the email.
The sort data field of the pagination.
The sort order of the pagination.
The page number of the pagination. Default value is 0.
The page size of the pagination. Default value is 200.
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
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?