Which type of API key do you need in order to use a client-side API?
- Private API key
- Public API key
- Either one works
Explanation: In the world of web development, “client-side” refers to anything running directly in the user’s browser. Because browser code is visible to anyone who right-clicks and selects “View Source,” security protocols dictate which keys can be exposed there. The Role of the Public API Key. The Public API key (also known as a Site ID in Klaviyo) is designed to be shared openly. It is a “write-only” identifier that allows the browser to send data to a specific account without the risk of someone using it to steal data from that account.