Cloning a form using api

Hello, is there a way how to clone a form using api?
In the api doc, I can see a form has the cloneable property

https://legacydocs.hubspot.com/docs/methods/forms/forms_overview

And on the UI, there’s the option to clone it manually

But I can’t seems to find any endpoint in the api doc, that would allow for this.

In our app, I see we have an endpoint defined for form cloning, namely: POST https://api.hubapi.com/forms/v2/forms/{id}/clone

But, when I call it, I get a 500 internal error with no further details.

Could this be a bug? Or maybe such an endpoint never existed? Thanks!

Hi @okoula

search the form using this api -

using this API you can create the form

For more reference you can refer to the link attached - (CLCIK HERE)

Hope this will helps you out. Please mark it as Solution Accepted & Upvote to help other Community member.
Thanks!