IBM API cookied based auth in outsystems

My API from IBM needs a cookie based-auth for rest APIs. But my problem is how can I get these cookies? Because when I try requesting in Postman using only basic authentication it works and return some cookies (as you can see in the att). But when I try to authenticate in outsystems using only basic authentication it does not work, just when I include the header "cookies" from Postman it works.
And I tried to get these cookies in outsystems, but returning the error "401" it does not execute OnAfterResponse.
The cookies from Postman gets expired after some minutes
Accepted answer

I have a very hard time to understand what you are asking. There is no context what "outsystems" would be and what you are trying. There is no attachment or image I could see.
Comments

Hi, thanks for your quick reply.
I'm trying to attach an image, but it's not accepting.
Thank you.

Try using Chrome to attach the image.

https://www.outsystems.com/forums/discussion/22162/set-rest-api-basic-authentication/