Public api to generate token and authenticate token

Hi,

Is there any public api exists that will generate and authenticate the token, Actually I want to generate token outside keycloak(might through postman or custom client)?.

Thanks,
Manish Kumar