Is there a way to fetch the Klaviyo Admin Url for a customer profile from the API?
It seems the format is something like:
https://www.klaviyo.com/profile/{id}/{first_name}-{last_name}
But with different handling for when there’s no first name or last name (uses email if both null), and with normalization of characters in name. Just going to https://www.klaviyo.com/profile/{id} gives a 404 (odd, you think it would redirect since ID is unique).
I would like to be able to pull the admin url from the API, reliably.
Context: In our own CRM, we want to put links to user profiles in various resources: Shopify, Klaviyo, Gorgias, etc. But we cannot reliably find or build such a link for Klaviyo at the moment.
The closest I’ve found is https://a.klaviyo.com/api/profiles/?fields\lprofile\]=email,first_name,last_name&filter=equals%28email%2C%22{email}%22%29 and then building with id, first, and last — but as I mentioned fields can be null and I’m sure I’ll miss some edge case handling, normalization logic, or it will change, etc.