Skip to main content
Contributor I
January 25, 2022
Solved

Rate limit response body example

  • January 25, 2022
  • 4 replies
  • 324 views

Cannot find example response body for rate limit. Will appreciate if someone can share one - I’m particularly interested in getting ‘retry after’ value (is it timestamp or number of seconds to wait).

    This topic has been closed for replies.
    Best answer by mkgr

    https://github.com/klaviyo/node-klaviyo/blob/master/lib/request.js#L104

    This code suggests it’s a header (‘Retry-After’) and the value is number of seconds to wait.

    4 replies

    alex.hong
    Klaviyo Alum
    January 25, 2022

    Hi there @mkgr,

    Welcome to the Community! Thanks for posting your API question here and I hope I can provide some info to get you started.

    We have a developer portal with information regarding our API that houses the information for our API. One example of such can be found below:

    Identify API:

    350 calls per second (We respond with a 1 if it's a good request or 0 if it's a bad request).

    *These APIs can perform faster than 350/s but may cause slowdowns in company infrastructure if you are hitting them that fast.

    I hope the developer portal has the information you are looking for. If not please feel free to let me know here.

    Thanks!
    Alex

    mkgrAuthor
    Contributor I
    January 26, 2022

    Thank you @alex.hong for you answer. Unfortunately it is not exactly I was looking for. In this post I found info that there should be ‘retry-after’ info, but I’m not sure what is exact schema of such response. 

     

    mkgrAuthorAnswer
    Contributor I
    January 26, 2022

    https://github.com/klaviyo/node-klaviyo/blob/master/lib/request.js#L104

    This code suggests it’s a header (‘Retry-After’) and the value is number of seconds to wait.

    alex.hong
    Klaviyo Alum
    January 26, 2022

    Thanks for the follow up and correction on info @mkgr! I hope you were able to find what you were looking for.