Pabbly API to Clickfunnels 2.0 not working
Status: Closed · Asked by jhumph on · 0 views
We have some website leads (from a site hosted outside of Clickfunnels) that we'd like to bring into Clickfunnels 2.0. We have a webhook that is capturing the data correctly, and then I was going to use the Pabbly API to connect into Clickfunnels. I think I have it set up correctly because I'm using the same set up I used previously, that is working fine. But I keep getting a big error, and part of the error says, "Access denied | [workspace].myclickfunnels.com used Cloudflare to restrict access" - I have the bearer token set up - just wondering what I'm missing?
I've also tried using the Clickfunnels 2.0 app, and it gives me this error: "Allowed domains: [clickfunnels.com]. Learn more: https://forum.pabbly.com/threads/custom-api-request.19458/" but I don't understand what that means? So I'm not sure if using Clickfunnels app or Pabbly's API is better?
Hi @jhumph,
Could you please share the Workflow URL if you have this concern? Also, please share the cURL command and the API documentation for the endpoint you are trying to execute in the API module.
Here's the Workflow URL: https://connect.pabbly.com/workflow/share/DkYFN1MEAWJTGQhiAFMBJg8bVlIAWlVtBB0BE1VaUChRHFEUA0IOZFsXByVeCQhpVB1UPgVZV2oBFQoOVwECcV1EUUNVVgd9BksEf1AzADMOUAUtUzI#
I'm sorry, I don't know what a cURL command is or what the API documentation for the endpoint means? If you can help me know what it is, I'll be able to get it for you.
In the video shared below, we can see that in order to execute an endpoint related to MailerLite, there is API documentation that states how the API module is supposed to be set up to execute that endpoint.
youtube.com/watch?v=xYC5mTobFfc
Every application that has a public REST API has such documentation. Could you please share that documentation with us?
Here you go: https://developers.myclickfunnels.com/reference
Based on the ClickFunnel API documentation, we can see that the workspace_id is supposed to be an integer. However, the workspace_id you are using in the execution of the endpoint in your workflow is not an integer. Please ensure that you are using the correct workspace_id.
https://developers.myclickfunnels.com/reference/createcontacts
I have the integer added, but it's giving the same response (https://ccfs.myclickfunnels.com/api/v2/workspaces/112272/contacts).
Perhaps it happens if the email is already in clickfunnels? Do I need to do an inquiry first to see if the email already exists, and if it is, just update the contact tags, and then if it's not, go forward with creating the contact?
If that is what I need to do, could you help me understand what to do to check if the email exists already?
You can use the 'Upsert a Contact' endpoint to achieve this use case. This endpoint will create a new contact or update an existing contact in your ClickFunnels account.
https://developers.myclickfunnels.com/reference/upsertcontact
We have added this endpoint to your workflow on your behalf.
Thank you for your help on this! Everything is working perfectly!
Thank you for the update. Glad we were able to help.