Get A Specific Template

Purpose

This API is used to retrieve a specific template in a given account.

OAuth Scope

Use the scope

MailApps.messages.ALL (or) MailApps.messages.READ

ALL - Full access to messages.

READ - Read a template.

To generate Authtoken, refer here.

Request URL

Method: GET

https://mail360.zoho.com/api/accounts/{account_key}/templates/{templateId}

Path Parameters

  • account_key*string
    • This key is used to identify the account from which the data has to be fetched. It is generated during account addition.
    • This parameter can be fetched using the Get All Accounts API.
  • templateId* long
    • This is the unique key to identifying a template in an account.
    • This parameter be fetched using the Get All Templates API.

 

* - Mandatory parameter

Sample Request

Copiedcurl "https://mail360.zoho.com/api/accounts/N7A**0CM/templates/167594940852211****" \
-X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken ***" \

Sample Response

Copied{
    "status": {
        "code": 200,
        "description": "success"
    },
    "data": {
        "fromAddress": "rebecca@zylker.com",
        "toAddress": "<paula@zylker.com>",
        "ccAddress": "<daniel@zylker.com>",
        "bccAddress": "<test-rebecca@zylker.com>",
        "templateId": "1674632567383110001",
        "folderId": "23450000000006001",
        "sender": "rebecca@zylker.com",
        "summary": "",
        "status": "1",
        "subject": "new Mail testing",
        "size": "281",
        "receivedTime": "1674632566998",
        "sentDateInGMT": "1674612766000",
        "flagid": "flag_not_set",
        "hasAttachment": 0
    }
}

Sample Response

Copied{
  "status": {
    "code": 200,
    "description": "success"
  },
  "data": {
    "fromAddress": "rebecca@zlyker.com",
    "toAddress": "<rebecca@zlyker.com>",
    "ccAddress": "<rebecca@zlyker.com>",
    "bccAddress": "<rebecca@zlyker.com>",
    "messageId": "1674632567383110001",
    "folderId": "23450000000006001",
    "sender": "rebecca@zlyker.com",
    "summary": "",
    "status": "1",
    "subject": "new Mail testing",
    "size": "281",
    "receivedTime": "1674632566998",
    "sentDateInGMT": "1674612766000",
    "flagid": "flag_not_set",
    "hasAttachment": 0
  }
}