Skip to main content

Hello,

On my first API call to create a List I get a throttled request.
This is a paid version, and like this the API is unusable. What’s happening?

 

 

{Method: POST, RequestUri: 'https://a.klaviyo.com/api/lists/', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
  Authorization: Klaviyo-API-Key xxxxxxxxxxxxxxxxxxxxx
  Accept: application/vnd.api+json
  revision: 2025-01-15
  traceparent: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  Content-Type: application/json; charset=utf-8
  Content-Length: 125
}}

PAYLOAD
{ data = { type = "list", attributes = { name = "BHAKTI YOGA - WOCHEN_KURS + VOLLPENSION -_47684093346131_E-RTR-BTR-1253" } } }

 

ERROR:
System.Exception: 'Error during list creation in Klaviyo: Request was throttled. Expected available in 2844 seconds.'

Hey ​@rfcsilva,

Have you checked out the your API call log in the developer tools section of your account? It’s a really useful tool, as you can use it to look up any API calls made (or failed) in the last 14 days, and see their request bodies and responses: https://www.klaviyo.com/developer-tools/logs. I’d recommend checking out this log, and looking at the day that you made this call. Are you seeing any other instances of the call being made? In general, you’ll only hit the rate limit if this call was made many times in a short amount of time. Set the time frame of this log to see if that’s what’s been happening, and it’ll provide this info. 

If you’re only seeing that one failed API call and nothing else, let me know. We can explore why this may be happening.

-Byrne

 


Hi ​@rfcsilva 

Thank you for posting in the Community!

I think the issue is likely due to the JSON script. 

Could you please try the following JSON code: 

POST,

https://a.klaviyo.com/api/lists

Authorization: Klaviyo-API-Key xxxxxxxxxxxxxxxxxxxxx

accept: application/vnd.api+json

content-type: application/vnd.api+json

revision: 2025-01-15

{
  "data": {
    "type": "Your list name"
  }
}

You can read more about the ‘Create list’ API here: https://developers.klaviyo.com/en/reference/create_list

Hope that helps or else let me know! :-) 

Christian Nørbjerg Enger
Partner & CPO
Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov