Get Email Template
Learn to retrieve details about an existing email template with API
This API allows you to retrieves detailed information about a specific email template by its template ID.
HTTP Method
This API uses the POST
method to update a existing email template.
API Endpoint
The Get Email Template API is available across multiple regions; below are the base URLs for different regions:
Region | Base URL |
---|---|
India | https://apiind.netcoresmartech.com/v4/content/get |
United States | https://api.netcoresmartech.com/v4/content/get |
Europe | https://apieu.netcoresmartech.com/v4/content/get |
Request Header
Authentication details are required to access the API. Ensure you include the necessary tokens or credentials in your request headers.
Header Name | Type | Description | Example | Required? |
---|---|---|---|---|
api-key | String | API key for authentication | 41a1de35948f915f64907ced9eed4f00 | Yes |
Request Body
All necessary parameters should be passed in the request body in JSON format.
Body Parameter | Data Type | Description | Required? |
---|---|---|---|
channel | string | Specifies the platform for the template. For example: email | Yes |
template_id | integer | Template ID of the template to be updated. | Yes |
encoding_type | string | Specifies encoding as "base64" or left blank. If "base64" is used, content must adhere to base64 encoding standards. | No |
Example Request Body
{
"channel": "email",
"template_ids": 20,
"encoding_type": "base64"
}'
Response & Error Codes
Error Code | Description | Response Sample |
---|---|---|
200 | The request was successful, and the template was created. | { "status": "archive | active", "channel": "email", "category": 34, "template_id": 20, "creation_time": "", "encoding_type": "base_64", "template_content": { "encoded_html_content": null }, "last_updated_time": "" } |
400 | The request was invalid. Check the request parameters and body for errors. | { "statusCode": 0, "message": "string" } |
500 | An error occurred on the server while processing the request. | { "statusCode": 0, "message": "string" } |
Updated about 2 months ago