Get browser session cookie for web app using curl

All,
I am trying to figure out how to get a browser cookie that can be sent as a Header using curl to the rest API of a flask application. If I login using the browser it’s /login page redirects me to Okta, I sign in, and it redirects me back as authenticated. I can get the session cookie from the browser and use that to run commands against an API using curl.

What I haven’t been able to fiigure out is how to get that browser session cookie using curl since it redirects to Okta. Any help? Is there a better way to go about this?

Hi @markdjones82, if you are trying to use our API via http client like curl you can use an API token instead. Check this doc out for more info - Create an API token | Okta Developer