Skip to main content

Hi All,

I am create a React Native app. I want to use Klaviyo to send emails to app users when they register or reset password. That will will contain 2FA code.

Simply put, I want to trigger Klaviyo email via REST API. The scenario which is in my mind is that I send API request to an endpoint with email address and some other data which can be dynamically replaced in email content.

I did some research on my end and I came across this:
https://developers.klaviyo.com/en/v1-2/reference/send-template
This is actually the thing I am looking for, but it is depreciated now.

Can you please suggest me an alternative workflow to achieve that.
I want to trigger an email to random email address that I will pass via REST API call.

Please suggest me a solution.

Thanks & Regards
Devendra Bisht

Your best bet I think is to use the API to send a custom event to the profile —

https://developers.klaviyo.com/en/reference/create_event

https://developers.klaviyo.com/en/reference/create_client_event

https://developers.klaviyo.com/en/docs/javascript_api

— and then have a flow that’s triggered off this event, that sends the profile the email.


Reply