Does grafana provide a API for login?

Grafana already provide a logout API, I can use curl to logout a user, for example:
curl -k -X POST -H “Content-Type: application/json” https://admin:admin@localhost:3000/api/admin/users/5/logout

My question is does grafana also provide a API so that we can let a user to login grafana via this API instead of grafana login page?
for example:
curl -k -X POST -H “Content-Type: application/json” -d ‘{“login”:“admin”,“password”:“admin”}’ https://localhost:3000/api/login

Please provides details of the API If you know of it, thanks.

I don’t see how this could work, because there’s no way to tell Grafana the IP
address and port number to expect the “logged in” connection to come from, so
there would be no way for the system to know which new connection to (a) trust
and (b) associate with that specific user.