authentication based on certificate for the API connection

Hello,

I would need to know if it is possible to authenticate to the API through a certificate or if the grant_type can only be username and password

also, what  API has to be called for the retrieve of the credentials?

thank for the support