Template preview with dynamic content from API

Hi all,
I’d like to have a preview of my transactional email template with dynamic content, to use in development environment.
I see that there is a feature « Preview as a recipient » in the dashboard but i did not find any resource that allow me to do the same using API.
I tried to get the personalized content from an email sent using sandbox header but no success.
Do you have any suggestion?

Thank you