Endpoint to login via Camunda REST API

I enabled the authentication in REST API using this post Turn On Basic HTTP Authentication for REST API in Spring Boot

Now, I get a “401 unauthorized” code while trying to access any endpoint such as “localhost:8080/rest/task”

But I am unable to find the endpoint to login. Can anyone show me where it is documented?

How are you sending the rest call?
You can send a user name and password as part of the rest call and it should then be validated by the engine