Skip to main content

Dashboards API

The Dashboards API provides endpoints for managing Grafana dashboards programmatically.

Get Dashboard by UID

Retrieve a dashboard by its unique identifier (UID).
string
required
Dashboard unique identifier
object
Dashboard metadata
boolean
Whether the dashboard is starred by the current user
boolean
Whether the current user can save the dashboard
integer
Dashboard version number
string
UID of the folder containing this dashboard
object
Dashboard JSON model

Create/Update Dashboard

Create a new dashboard or update an existing one.
object
required
Dashboard JSON model
string
required
Dashboard title
string
Dashboard UID (auto-generated if not provided)
array
Array of panel configurations
string
UID of the folder to save the dashboard in
string
Commit message for this dashboard version
boolean
default:"false"
Whether to overwrite existing dashboard with same UID
string
Operation status (“success”)
string
Dashboard UID
string
Relative URL to access the dashboard
integer
New version number

Delete Dashboard by UID

Delete a dashboard by its UID.
string
required
Dashboard unique identifier
string
Title of the deleted dashboard
string
Deletion confirmation message

Get Dashboard Versions

Retrieve all versions of a dashboard.
string
required
Dashboard unique identifier
integer
Maximum number of versions to return
integer
Version number to start from
array
Array of dashboard versions
integer
Version number
string
Creation timestamp (ISO 8601)
string
Username of creator
string
Commit message for this version

Get Dashboard Version

Retrieve a specific version of a dashboard.
string
required
Dashboard unique identifier
integer
required
Version ID

Get Dashboard Tags

Get all dashboard tags for the current organization.
string
Tag name
integer
Number of dashboards with this tag

Get Home Dashboard

Get the home dashboard for the current user.

Permissions

If you are running Grafana Enterprise with Fine-grained access control enabled:
  • Read: Requires dashboards:read permission with scope dashboards:uid:<uid>
  • Create: Requires dashboards:create permission
  • Update: Requires dashboards:write permission with scope dashboards:uid:<uid>
  • Delete: Requires dashboards:delete permission with scope dashboards:uid:<uid>