Configuration & Installation - Where to start?

I need some guideance on configuration screens for my application. I’ve successfully created a macro on confluence cloud, it renders and passes credentials back to my application however how do I let customers configure my application within confluence cloud, what properties do I need to set to allow for a “configure” option within the manage addon section?

Basically I need to store information on my site so I want to ask them for credentials to link their account to confluence, Is there a tutorial or any documentation that may cover this?

Managed to work around by creating an admin page, docs here

Same page has the documentation you want: configurePage. For the module to use: