Solved

How can I Verify that a Public API Key exists?

  • 22 November 2020
  • 1 reply
  • 492 views

Badge +2

Hi!

 

I’m adding an integration with Klaviyo to an application. Currently, the user enters their public API key, and we put our data stream into Klaviyo by calling track/identify using the API key with the data accrued on our platform.

 

We want to verify that the API key is valid when the user enters it, so that we can track typos/nonsense entries. Is there an endpoint meant for this? It seems like endpoints that use the public API key (track/identify) are POSTs, so we can’t use a “dummy request” to verify the key validity (or else we may end up creating dummy data on Klaviyo).

icon

Best answer by remstone 22 November 2020, 23:30

View original

1 reply

Userlevel 2
Badge +5

Hey @jag729 at this time there isn’t an endpoint to verify that the public api key is correct - this is verified downstream and is not returned as a valid/invalid response based on the key.  As you mentioned, it may be worth creating a “test” track event saying something like: “My custom event test” and then allowing the user to send this and verify it showed up correctly inside their Klaviyo account.

 

 

Reply