Custom JS code via API

Hello,

I checked the dev docs but couldn’t find a way to insert JS code via the API.

Is there a way to do so?

Regarding content manipulation, the API is designed only to work with CMS items.
CMS items can have custom code inside of Rich Text items, which can be updated through the API. Therefore you can add custom code that way.

You may need to do some experiments to make sure the custom code is identified properly.
https://wishlist.webflow.com/ideas/WEBFLOW-I-4640

Hi @erezson :wave: welcome to the forum.

Can you talk a little be more about what you’re trying to accomplish? I ask as there may be other approaches that work just as well, but are less error prone.