How to call a web API using JWT token?

There are APIs that I think only work on web using cookie authentication.
For example:
/support/enrollment/{username} (to change users enrollment modes)

I wonder if there is any way to call them using a JWT token?
I’ve tried the end point /oauth2/login/ (to exchange a JWT token to a sessionId?) with a JWT token but I got an error “Only asymmetric jwt are supported.”
How to get an asymmetric JWT?