How to create application and assign access profile to application through API

That tool is using api which you can see in network tab in product. There is nothing internal to that tool in regards to api being used.