curl -s -H 'Authorization: Bearer $GRAFANA_TOKEN' http://localhost:3000/api/health

Category: Monitoring & Observability

curl -s -H 'Authorization: Bearer $GRAFANA_TOKEN' http://localhost:3000/api/health

Call the Grafana API with a service account token

Authenticates to the Grafana HTTP API using a service account token from Administration, Service accounts. The token travels as a Bearer token in the Authorization header; $GRAFANA_TOKEN expands from your environment. Authenticated calls can reach user-scoped endpoints such as /api/users.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.