The Get a Specific Email Template API fetches an email template using its template id.
The API request will be authenticated through Basic Authentication. Basic Authentication sends a Base64-encoded string containing your username and password with every API request.
The username and password details can be obtained from the MoEngage Dashboard. If you're using the API for the first time, follow these steps:
This is your MoEngage account's Workspace ID, which must be passed along with the request. You can find your MoEngage Workspace ID at Settings -> Account -> APIs -> Workspace ID.
Set the Content-Type header to application/json.
application/json This authentication parameter, used for access control, must be passed along with the request. To generate the authentication header, refer to Authentication.
This is the Template id of the template being searched. The template id is a unique identifier that is generated at the time of template creation.
"63f30792c66ddcaac2ef9109"
This response is returned when the request is processed successfully.
This field contains the status of the request and denotes whether it was successful or not.
"success"
This field contains the id of the created template when the request is successful and the error details in case of an unsuccessful request.
"645a0cec10e0307e6d7f7716"
"End_of_season_sale_template"
subject of the template being fetched
html content of the template
The attachments field is a list of JSON Objects that contain the details about an attachment, such as its type, url, name, id, and so on.
source of the template being fetched
timestamp of template creation
timestamp of when the template was last updated
details about who created or updated the template