Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering and sending a template trough API #349

Open
viglu opened this issue Nov 16, 2024 · 1 comment
Open

Rendering and sending a template trough API #349

viglu opened this issue Nov 16, 2024 · 1 comment

Comments

@viglu
Copy link

viglu commented Nov 16, 2024

It would be nice to render a template trough a API like
[POST] /api/v1/templates/render/{id}
or
[POST] /api/v1/templates/sent/{id}

Both APIs will have the same input. It will retrieve contact data by id, will replace the tags in the email with contact data and will replace the tags with data.
{
"contact": {
"id": "xxxxx"
}
"data": {
"custom_attribute": "yyyyy"
}
}

The render API with only render the HTML and is returned. The sent API will render the Email and will sent it out to the contact.

@wmnnd
Copy link
Contributor

wmnnd commented Dec 4, 2024

Hey, thank you for your suggestion! What exactly would be the use-case for the render endpoint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants