API Overview
The Grafana HTTP API provides programmatic access to Grafana’s core functionality. The same API is used by the frontend to perform operations like managing dashboards, data sources, users, and organizations.Base URL
All API requests are made to:API Versioning
The current API version is0.0.1. The API uses the following schemes:
- Schemes:
http,https - BasePath:
/api - Consumes:
application/json - Produces:
application/json
Common Response Codes
The API uses standard HTTP response codes:| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request - Invalid request data |
| 401 | Unauthorized - Authentication required |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource does not exist |
| 409 | Conflict - Resource already exists |
| 500 | Internal Server Error |
Response Format
API responses are returned in JSON format:Success Response
Error Response
Rate Limiting
API rate limiting is configured per organization. Contact your Grafana administrator for specific rate limits.API Resources
The Grafana API provides endpoints for:- Authentication - API keys, tokens, and session management
- Dashboards - Create, read, update, and delete dashboards
- Data Sources - Manage data source configurations
- Users - User management and profiles
- Organizations - Organization management
- Alerts - Alert notification channels