Integrations within tasks

What is exactly the purpose of adding an integration in tasks?
I created an ITGlue integration, and all it does is just connects with ITGlue API through ITGlue powershell module, and I thought if I connect integration to my task, I’d be able to use already connected API to make calls or at least get API key and Uri from parameters. and If not, how do I even use integrations within tasks then?