Custom API method with JWT authentication

Hi, I need to build a Custom API method, but with JWT authentication (by default all custom apis are without authantication). I need to do this exactly like standard api methods. Is there an easy way to do this?

Try the Api_Action server event with the following statement.

[Authorize(Policy = "ApiUserLevel")]