Solving 401 Error: A Guide to Connecting to Flodesk API on Make.com
Hi there, fellow Make.com users! Today, I want to share with you a solution to a problem I recently encountered. I was trying to connect to the Flodesk API to get my Squarespace buyers to my Flodesk email list, but I kept getting a 401 error. If you've been in the same boat, this post is for you!
The Problem
While trying to connect to the Flodesk API, I kept getting a 401 error. I was using the Flodesk API reference, but something was amiss.
The Solution
After some trial and error, I found a solution that worked. Here's a step-by-step guide:
- In Make.com, choose the HTTP module > “Make a request”.
- Set everything as you did before and add the header like this:
It might also work if you just replace “api_key” with “Authorization” in your keychain settings.
Troubleshooting Tips
If you're trying to add subscribers to a certain segment but it's not posting, here are a few things you can try:
- Updating the URL to “https://api.flodesk.com/v1/subscribers/{id_or_email}/segments”. Use the variables to update the id and paste the segment id #.
- Adding id and segment_ids in the parameters.
- Adding id and segment_ids in the Headers.
- Adding the following in the Request Content:
{ "segments": [ { "id": "xxxxxxx", "name": "Test Product"}], "custom_fields": { "test_cf": "yes", }
Conclusion
Connecting to the Flodesk API can be a bit tricky, but with the right steps, it's definitely doable. I hope this guide has been helpful to you. Remember, the key is to keep trying different solutions until you find the one that works for you. Happy automating!
You do have further questions?
Ask your question via E-Mail: Richard@make-app.de
Book a paid Support & Consulting Session
New Make.com user? Sign up through this Affiliate Link to receive 10.000 operations for FREE.