Add Custom code to site settings of user dynamically through the app

Hi!

I’ve been trying to figure this out for the majority of today. So I know that I would need a hybrid app. I cloned the example one they have on github and configured it to work.

Next, I read this doc: Custom Code
And I’m trying to get it to run, but nothing seems to be working. What am I doing wrong?

Is there an easier way to handle this? The only functionality my app requires from the data client is adding the custom code over to the site settings, everything else just needs the designer extension. I read in the docs that it’s possible to just use the designer extension in the app, and set up a webflow API, is this something that is feasible?

If anybody who is great with this would be open to guide me through this I will forever be grateful!

Hi @Khadija_Hashmi - sorry you’re running into issues!

To clarify, which API are you having troubles with when posting the hosted script (the register part, or the adding registered script part)? Can you provide any notable errors (hard to tell if there’s a catch block for the errors in the axios call in the screenshots)?