Question Regarding Cloudflare Pages API

So when using the Cloudflare platform & navigating to Cloudflare Pages we have an option to upload HTML, CSS & JS files directly from our computer.

How do we do this with an API? I want to pass files directly via API & I cant seem to find any information for the same.

Any help is appreciated thanks!

There’s no documented API for this unfortunately. You can use Direct Upload using wrangler, and the code for that is entirely open source, but the APIs are not documented and could change at any time.