Skip to main content
Solved

API problem. Please help


Forum|alt.badge.img+1
  • Contributor III
  • 5 replies

Hey guys,
I am encountering a problem when I try to make an API call to extract profils from a list. 

RuntimeError

[404] The path /apihttps:/a.klaviyo.com/api/lists/Wn7ttE/profiles/ could not be found

I refered to this one to put the whole API in place in Make.com: https://developers.klaviyo.com/en/reference/get_profiles_for_list

Your help is very much appreciated guys
Thanks in advance

Best answer by tsalamazing

I think because you already have what it calls a "klaviyo connection”, the URL field should only take what comes the main api URL

 

For example: You want to call https://a.klaviyo.com/api/lists/Wn7ttE/profiles

 

Your Klaviyo connection already includes the "https://a.klaviyo.com/api

 

So, you only have to add the "/lists/Wn7ttE/profiles” in your URL field

 

 

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

7 replies

annasophiefc
Partner - Platinum
Forum|alt.badge.img+22
  • 2025 Champion
  • 99 replies
  • January 14, 2025

Hi ​@Youss 

Thank you for posting in the Community.

 

It appears that there could be a typo in your destination URL. 

 

 /apihttps:/a.klaviyo.com/api/lists/Wn7ttE/profiles/ should be https:/a.klaviyo.com/api/lists/Wn7ttE/profiles/

 

Can you try this and see if it solves the problem?


tsalamazing
Problem Solver I
Forum|alt.badge.img+2
  • Problem Solver I
  • 9 replies
  • January 14, 2025

Yeah, like Anna said, if this is not a typo, it's the '/api’ in the '/apihttps:/a.klaviyo.com/api/lists/Wn7ttE/profiles/’

 

But if that's not the case and you use https://a.klaviyo.com/api/lists/Wn7ttE/profiles and you're still getting a 404, could it be that the list ID is not correct? 


Forum|alt.badge.img+1
  • Author
  • Contributor III
  • 5 replies
  • January 14, 2025

Hello ​@tsalamazing and ​@annasophiefc,
Thanks you guys for you quick response. 
Actually I double checked everything. 
No typos, but now I have this error message instead
 


 

 


Forum|alt.badge.img+1
  • Author
  • Contributor III
  • 5 replies
  • January 14, 2025

Just tested it on Postman and it tells me this: 

Cloud Agent Error: Couldn't resolve host. Make sure the domain is publicly accessible or select a different agent.


tsalamazing
Problem Solver I
Forum|alt.badge.img+2
  • Problem Solver I
  • 9 replies
  • Answer
  • January 14, 2025

I think because you already have what it calls a "klaviyo connection”, the URL field should only take what comes the main api URL

 

For example: You want to call https://a.klaviyo.com/api/lists/Wn7ttE/profiles

 

Your Klaviyo connection already includes the "https://a.klaviyo.com/api

 

So, you only have to add the "/lists/Wn7ttE/profiles” in your URL field

 

 


Forum|alt.badge.img+1
  • Author
  • Contributor III
  • 5 replies
  • January 14, 2025

@tsalamazing it is working !! 🤙Thanks a lot for your help 🙏


Hello! 😊

The issue seems to be related to the incorrect formatting of the API endpoint. Ensure the URL matches the one in the Klaviyo documentation without extra prefixes like https:/api. It should look like this:
https://a.klaviyo.com/api/lists/{list_id}/get_profiles

Also, while resolving your API issue, consider tools like mailtester.ninja for verifying and cleaning your email lists. It complements your API process by ensuring the extracted profiles are valid and free from risky addresses or typos.

Good luck, and feel free to share more details if the issue persists! 🚀