How to access Grafana hosted-Prometheus API directly?

I am trying to use hosted prometheus to fetch metrics using API directly.
https://prometheus-prod-26-prod-ap-south-0.grafana.net/api/v1/query?query=up

I am receiving - 404 page not found

Following the official prometheus documentation - HTTP API | Prometheus