How to tell curl to use credentials which are set in Gitlab variables for execution on Salt?

Hey Guys,

I have salt-api credentials(already stored in gitlab variables) which will allow me to do remote execution from salt master on minion hosts.

I wonder how to construct a curl command( i guess now it’s the easiest way to achieve my goal) that curl uses credentials which are set in Gitlab variables for execution on Salt.

So my pipeline already able to download curl as well as salt api.

Thanks in advance