docs/sources/developer-resources/api-reference/http-api/_index.md
Every Grafana instance exposes an HTTP API, used by the Grafana frontend to manage resources like saving dashboards, creating users, updating data sources, deleting alerts, and more. You can use the HTTP API to programmatically access or manage resources from your Grafana instance.
If you need to manage or access other resources from your Grafana Cloud Stack, refer to the Grafana Cloud API instead.
Grafana is deprecating legacy APIs (/api) in favor of a new generation of improved APIs (/apis) which follow a standardized API structure alongside consistent API versioning.
To learn more refer to:
Grafana HTTP APIs comply both with the OpenAPI v2 specification (Swagger 2.0) and OpenAPI v3 specification. While both describe the exact same set of Grafana HTTP API routes (dashboards, folders, data sources, organizations, users, teams, RBAC, alerting provisioning...), v2 is the canonical specification and source of truth, and v3 is converted from the v2 file using a conversion script.
If you're consuming a Grafana HTTP API:
terraform-provider-grafana) expects Swagger 2.0.You can browse and try out both via the Swagger UI editor, served by the Grafana server, by navigating to /swagger-ui.
In OSS, you can authenticate your requests to the HTTP APIs using basic auth or a service account token. In Grafana Cloud, only the service account token option is available. For more details refer to HTTP API authentication.
The following table lists all available HTTP API reference pages. New APIs are listed first, followed by legacy APIs.
Use the following resources to keep working with Grafana APIs:
/swagger page in your Grafana instance to inspect endpoint schemas and try requests.