Authentication by endpoint

Hi there i can auth a user by a endpoint ? I have a api with a endpoint to login like this https://knowapi.org/auth/sign-in body: {username, password} and I wan login with this endpoint I can ?