Klaviyo is rejecting requests to the track API endpoint for one of our customers. Since the response returns with a status of 200 and a body of 0 it’s impossible to know why. Is there a way we can figure out why a request is being rejected?
Best answer by Dov
Thank you for sharing your question with the Klaviyo Community.
While there is no report specifically outlining why a request gets rejected, there are a few steps you should follow to triage the issue.
- Verify that the JSON is valid. You can check http://jslint.com/ to verify that the payload you’re sending is formatted correctly.
- Ensure that your base64-encoded string is also url-encoded.
- Cross-reference your request with the examples we have in our Track API documentation. One common mistake is the private api key is used in the request when the public api key is required or vice versa. In this case, the request will return a body of 0.
Thanks and have a great day.