How to authenticate user using API without using login page

Hello, I want to authenticate user from backend using API, is it possible?

Yes, you can use this flow:

Let me know if you have any questions.