Hi @matcwhite!
At this time, it’s not possible to include images in the Create Event API call, but I will update the thread if anything changes.
Â
Best,
Brian
Hi ​@matcwhite - I was hitting the same wall. You can do it, but you might not want to.
Â
I was able to send the qr code base64 dataÂ
{
"attributes":{
"properties":{
"img":"data:image/png;base64,iVBOxxxxx"
...
as an event attribute. This allowed me to dynamically set an image to event.img
and embed the content of the image directly in the email.
However, this ends up with potential compatibility issues. 1]Â
Â
In production I’m actually using the /api/images
endpoint o2] with the import_from_url
attribute.
The import_from_url
allows you to set a base64 encoded string instead of a url. I’m capturing the new Klaviyo URL and Image ID in the response. The Klaviyo URL is a drop-in replacement for the above img
event attribute.
(And I’m saving the Klaviyo Image IDs for future clean up.)
Â
Â
Â
Â