GET api/emails

This method will retrieve all Email Templates for a user

Requires Authorization!

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Email template associated with active user

Collection of EmailTemplateResponseModel
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

Name

string

None.

Content

string

None.

IsHtml

boolean

None.

MassEmailSupport

boolean

None.

DeleteAllowed

boolean

None.

AddedDate

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "userId": 2,
    "name": "sample string 3",
    "content": "sample string 4",
    "isHtml": true,
    "massEmailSupport": true,
    "deleteAllowed": true,
    "addedDate": "2025-05-20T16:00:59.2348224-05:00"
  },
  {
    "id": 1,
    "userId": 2,
    "name": "sample string 3",
    "content": "sample string 4",
    "isHtml": true,
    "massEmailSupport": true,
    "deleteAllowed": true,
    "addedDate": "2025-05-20T16:00:59.2348224-05:00"
  }
]

text/html

Sample:
[{"id":1,"userId":2,"name":"sample string 3","content":"sample string 4","isHtml":true,"massEmailSupport":true,"deleteAllowed":true,"addedDate":"2025-05-20T16:00:59.2348224-05:00"},{"id":1,"userId":2,"name":"sample string 3","content":"sample string 4","isHtml":true,"massEmailSupport":true,"deleteAllowed":true,"addedDate":"2025-05-20T16:00:59.2348224-05:00"}]

application/xml, text/xml

Sample:
<ArrayOfEmailTemplateResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.Emails">
  <EmailTemplateResponseModel>
    <AddedDate>2025-05-20T16:00:59.2348224-05:00</AddedDate>
    <Content>sample string 4</Content>
    <DeleteAllowed>true</DeleteAllowed>
    <Id>1</Id>
    <IsHtml>true</IsHtml>
    <MassEmailSupport>true</MassEmailSupport>
    <Name>sample string 3</Name>
    <UserId>2</UserId>
  </EmailTemplateResponseModel>
  <EmailTemplateResponseModel>
    <AddedDate>2025-05-20T16:00:59.2348224-05:00</AddedDate>
    <Content>sample string 4</Content>
    <DeleteAllowed>true</DeleteAllowed>
    <Id>1</Id>
    <IsHtml>true</IsHtml>
    <MassEmailSupport>true</MassEmailSupport>
    <Name>sample string 3</Name>
    <UserId>2</UserId>
  </EmailTemplateResponseModel>
</ArrayOfEmailTemplateResponseModel>