Skip to main content
Solved

How can I Verify that a Public API Key exists?

  • November 22, 2020
  • 1 reply
  • 579 views

Forum|alt.badge.img+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).

Best answer by remstone

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.

 

 

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

Forum|alt.badge.img+5
  • Klaviyo Alum
  • 10 replies
  • Answer
  • November 22, 2020

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.