getMacros
| Method | GET | ||
| Prod URL | https://irm.trustarc.com/server/api/v1/external/email-templates/macros | ||
| Headers | Authorization: Bearer <access_token from 'Token Access' section> | ||
| URL Parameters | Required Query Parameters | ||
| Name | Value | Description | |
templateType | Email Types | Email Types available in IRM | |
| Sample Request | N/A | ||
| Sample Success Response | [
{
"displayName": "Company Name",
"macro": "[[${companyName}]]"
},
…
] | ||
| Success Response | Code: 200 OK | ||
| Error Response |
| ||
getByRequestBestMatches
| Method | GET | ||
| Prod URL | https://irm.trustarc.com/server/api/v1/external/email-templates/requests/{requestId}/best-matches | ||
| Headers | Authorization: Bearer <access_token from 'Token Access' section> | ||
| URL Parameters | Required Query Parameters | ||
| Name | Value | Description | |
requestId | Request ID | Request where the resulting best matching email templates will be based on. | |
templateType | Email Template Type | Email Template where the resulting best matching email templates will be based on. | |
| Sample Request | N/A | ||
| Sample Success Response | [
{
"id": "690c5461-5060-48ea-8825-1834a8f77f28",
"customFrom": "IRM Notification",
"replyTo": "no-reply@trustarc.com",
"subject": "Notification regarding your request to [[${companyName}]]",
"message": "<div>\n <span>Hi [[${firstName}]]</span>,\n</div>\n<div>\n <p>Thank you for your request of [[${requestType}]].</p>\n <p>Please click this link and download the attachment for more information. <br/><a href=\"[[${downloadLink}]]\">[[${downloadLink}]]</a></p>\n <p>Please do not reply to this email. If you have further questions or require further assistance please email <strong>[[${companyName}]]</strong> at [[${supportEmail}]].</p>\n</div>\n<div>\n <p>Thank you.</p>\n</div>"
},
…
] | ||
| Success Response | Code: 200 OK | ||
| Error Response |
| ||