Get Email Templates

Changed on
get/misc/email_template

Request

  • Base URL
    https://dc-region.zuperpro.com/api
  • URL
    https://dc-region.zuperpro.com/api/misc/email_template
  • Auth
    API key in header x-api-key

Query parameters

pageinteger required
countinteger required
sort'"ASC"' | '"DESC"'
sort_by'"template_name"' | '"created_at"'
filter.keywordstring
filter.template_modulestring

Response

200

typestring
total_recordsinteger
current_pageinteger
total_pagesinteger

Example response

{
  "type": "success",
  "data": [
    {
      "template_uid": "7c58e680-8951-11ec-be25-67cf7f623b46",
      "template_name": "email",
      "template_description": "this will email",
      "template_module": "JOB",
      "is_active": true,
      "created_by": {
        "user_uid": "b9c91ee7-850f-47b7-b2cd-a6b78f4254d3",
        "first_name": "Tom",
        "last_name": "R",
        "email": "tom.r@zuper.co",
        "designation": "Admin",
        "emp_code": "001",
        "profile_picture": "https://s3.ap-south-1.amazonaws.com/staging.in.pro.zuper/attachments/4ddf323f-19ed-4b56-81c-70d0bdf628c5/ea2602d9-0379-4ffb-a2c0-916dc2558c56.JPG",
        "is_active": true,
        "created_at": "2024-06-14T07:34:28.000Z",
        "updated_at": "2024-09-18T04:03:31.000Z"
      },
      "created_at": "2022-02-09T02:39:21.321Z",
      "updated_at": "2022-02-09T02:39:21.322Z",
      "id": "undefined"
    }
  ],
  "total_records": 2,
  "current_page": 1,
  "total_pages": 1
}

Changes