Grafana

Use Grafana to manage dashboards, alert rules, contact points, annotations, and folders. Query data sources or check their health and the Grafana server's status from a workflow.

Usage Instructions

Integrate Grafana into workflows. Manage dashboards, alerts, annotations, data sources, folders, and monitor health status.

Actions

Grafana Get Dashboard

Get a dashboard by its UID

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
dashboardUidstringYesThe UID of the dashboard to retrieve (e.g., abc123def)

Output

ParameterTypeDescription
dashboardjsonThe full dashboard JSON object
metajsonDashboard metadata (version, permissions, etc.)

Grafana List Dashboards

Search and list all dashboards

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
querystringNoSearch query to filter dashboards by title
tagstringNoFilter by tag (comma-separated for multiple tags)
folderUIDsstringNoFilter by folder UIDs (comma-separated, e.g., abc123,def456)
dashboardUIDsstringNoFilter by dashboard UIDs (comma-separated, e.g., abc123,def456)
starredbooleanNoOnly return starred dashboards
limitnumberNoMaximum number of dashboards to return (default 1000)
pagenumberNoPage number for pagination (1-based)

Output

ParameterTypeDescription
dashboardsarrayList of dashboard search results
idnumberDashboard ID
uidstringDashboard UID
titlestringDashboard title
urlstringDashboard URL path
tagsarrayDashboard tags
folderTitlestringParent folder title

Grafana Create Dashboard

Create a new dashboard

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
titlestringYesThe title of the new dashboard
folderUidstringNoThe UID of the folder to create the dashboard in (e.g., folder-abc123)
tagsstringNoComma-separated list of tags
timezonestringNoDashboard timezone (e.g., browser, utc)
refreshstringNoAuto-refresh interval (e.g., 5s, 1m, 5m)
panelsstringNoJSON array of panel configurations
overwritebooleanNoOverwrite existing dashboard with same title
messagestringNoCommit message for the dashboard version

Output

ParameterTypeDescription
idnumberThe numeric ID of the created dashboard
uidstringThe UID of the created dashboard
urlstringThe URL path to the dashboard
statusstringStatus of the operation (success)
versionnumberThe version number of the dashboard
slugstringURL-friendly slug of the dashboard

Grafana Update Dashboard

Update an existing dashboard. Fetches the current dashboard and merges your changes.

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
dashboardUidstringYesThe UID of the dashboard to update (e.g., abc123def)
titlestringNoNew title for the dashboard
folderUidstringNoNew folder UID to move the dashboard to (e.g., folder-abc123)
tagsstringNoComma-separated list of new tags
timezonestringNoDashboard timezone (e.g., browser, utc)
refreshstringNoAuto-refresh interval (e.g., 5s, 1m, 5m)
panelsstringNoJSON array of panel configurations
overwritebooleanNoOverwrite even if there is a version conflict (defaults to false to surface 412 conflicts)
messagestringNoCommit message for this version

Output

ParameterTypeDescription
idnumberThe numeric ID of the updated dashboard
uidstringThe UID of the updated dashboard
urlstringThe URL path to the dashboard
statusstringStatus of the operation (success)
versionnumberThe new version number of the dashboard
slugstringURL-friendly slug of the dashboard

Grafana Delete Dashboard

Delete a dashboard by its UID

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
dashboardUidstringYesThe UID of the dashboard to delete (e.g., abc123def)

Output

ParameterTypeDescription
titlestringThe title of the deleted dashboard
messagestringConfirmation message
idnumberThe ID of the deleted dashboard

Grafana List Alert Rules

List all alert rules in the Grafana instance

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)

Output

ParameterTypeDescription
rulesarrayList of alert rules
idnumberAlert rule numeric ID
uidstringAlert rule UID
titlestringAlert rule title
conditionstringRefId of the query used as the alert condition
datajsonAlert rule query/expression data array
updatedstringLast update timestamp
noDataStatestringState when no data is returned
execErrStatestringState on execution error
forstringDuration the condition must hold before firing
keepFiringForstringDuration to keep firing after condition stops
missingSeriesEvalsToResolvenumberNumber of missing series evaluations before resolving
annotationsjsonAlert annotations
labelsjsonAlert labels
isPausedbooleanWhether the rule is paused
folderUIDstringParent folder UID
ruleGroupstringRule group name
orgIDnumberOrganization ID
provenancestringProvisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI
notification_settingsjsonPer-rule notification settings (overrides)
recordjsonRecording rule configuration (recording rules only)

Grafana Get Alert Rule

Get a specific alert rule by its UID

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
alertRuleUidstringYesThe UID of the alert rule to retrieve

Output

ParameterTypeDescription
idnumberAlert rule numeric ID
uidstringAlert rule UID
titlestringAlert rule title
conditionstringRefId of the query used as the alert condition
datajsonAlert rule query/expression data array
updatedstringLast update timestamp
noDataStatestringState when no data is returned
execErrStatestringState on execution error
forstringDuration the condition must hold before firing
keepFiringForstringDuration to keep firing after condition stops
missingSeriesEvalsToResolvenumberNumber of missing series evaluations before resolving
annotationsjsonAlert annotations
labelsjsonAlert labels
isPausedbooleanWhether the rule is paused
folderUIDstringParent folder UID
ruleGroupstringRule group name
orgIDnumberOrganization ID
provenancestringProvisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI
notification_settingsjsonPer-rule notification settings (overrides)
recordjsonRecording rule configuration (recording rules only)

Grafana Create Alert Rule

Create a new alert rule

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
titlestringYesThe title of the alert rule
folderUidstringYesThe UID of the folder to create the alert in (e.g., folder-abc123)
ruleGroupstringYesThe name of the rule group
conditionstringNoThe refId of the query or expression to use as the alert condition (required for alerting rules; omit for recording rules)
datastringYesJSON array of query/expression data objects
forDurationstringNoDuration to wait before firing (e.g., 5m, 1h)
noDataStatestringNoState when no data is returned: NoData (default), Alerting, OK, or KeepLast. Ignored for recording rules
execErrStatestringNoState on execution error: Error (default), Alerting, OK, or KeepLast. Ignored for recording rules
annotationsstringNoJSON object of annotations
labelsstringNoJSON object of labels
uidstringNoOptional custom UID for the alert rule
isPausedbooleanNoWhether the rule is paused on creation
keepFiringForstringNoDuration to keep firing after the condition stops (e.g., 5m)
missingSeriesEvalsToResolvenumberNoNumber of missing series evaluations before resolving
notificationSettingsstringNoJSON object of per-rule notification settings (overrides)
recordstringNoJSON object configuring this as a recording rule (omit for alerting rules)
disableProvenancebooleanNoSet X-Disable-Provenance header so the rule remains editable in the Grafana UI

Output

ParameterTypeDescription
idnumberAlert rule numeric ID
uidstringAlert rule UID
titlestringAlert rule title
conditionstringRefId of the query used as the alert condition
datajsonAlert rule query/expression data array
updatedstringLast update timestamp
noDataStatestringState when no data is returned
execErrStatestringState on execution error
forstringDuration the condition must hold before firing
keepFiringForstringDuration to keep firing after condition stops
missingSeriesEvalsToResolvenumberNumber of missing series evaluations before resolving
annotationsjsonAlert annotations
labelsjsonAlert labels
isPausedbooleanWhether the rule is paused
folderUIDstringParent folder UID
ruleGroupstringRule group name
orgIDnumberOrganization ID
provenancestringProvisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI
notification_settingsjsonPer-rule notification settings (overrides)
recordjsonRecording rule configuration (recording rules only)

Grafana Update Alert Rule

Update an existing alert rule. Fetches the current rule and merges your changes.

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
alertRuleUidstringYesThe UID of the alert rule to update
titlestringNoNew title for the alert rule
folderUidstringNoNew folder UID to move the alert to (e.g., folder-abc123)
ruleGroupstringNoNew rule group name
conditionstringNoNew condition refId
datastringNoNew JSON array of query/expression data objects
forDurationstringNoDuration to wait before firing (e.g., 5m, 1h)
noDataStatestringNoState when no data is returned (NoData, Alerting, OK)
execErrStatestringNoState on execution error (Error, Alerting, OK)
annotationsstringNoJSON object of annotations
labelsstringNoJSON object of labels
isPausedbooleanNoWhether the rule is paused
keepFiringForstringNoDuration to keep firing after the condition stops (e.g., 5m)
missingSeriesEvalsToResolvenumberNoNumber of missing series evaluations before resolving
notificationSettingsstringNoJSON object of per-rule notification settings (overrides)
recordstringNoJSON object configuring this as a recording rule
disableProvenancebooleanNoSet X-Disable-Provenance header so the rule remains editable in the Grafana UI

Output

ParameterTypeDescription
idnumberAlert rule numeric ID
uidstringAlert rule UID
titlestringAlert rule title
conditionstringRefId of the query used as the alert condition
datajsonAlert rule query/expression data array
updatedstringLast update timestamp
noDataStatestringState when no data is returned
execErrStatestringState on execution error
forstringDuration the condition must hold before firing
keepFiringForstringDuration to keep firing after condition stops
missingSeriesEvalsToResolvenumberNumber of missing series evaluations before resolving
annotationsjsonAlert annotations
labelsjsonAlert labels
isPausedbooleanWhether the rule is paused
folderUIDstringParent folder UID
ruleGroupstringRule group name
orgIDnumberOrganization ID
provenancestringProvisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI
notification_settingsjsonPer-rule notification settings (overrides)
recordjsonRecording rule configuration (recording rules only)

Grafana Delete Alert Rule

Delete an alert rule by its UID

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
alertRuleUidstringYesThe UID of the alert rule to delete

Output

ParameterTypeDescription
messagestringConfirmation message

Grafana List Contact Points

List all alert notification contact points

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
namestringNoFilter contact points by exact name match

Output

ParameterTypeDescription
contactPointsarrayList of contact points
uidstringContact point UID
namestringContact point name
typestringNotification type (email, slack, etc.)
settingsjsonType-specific settings
disableResolveMessagebooleanWhether resolve messages are disabled
provenancestringProvisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI

Grafana Create Contact Point

Create a notification contact point (e.g., Slack, email, PagerDuty)

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
namestringYesName of the contact point (groups receivers shown in the UI)
typestringYesReceiver type (e.g., slack, email, pagerduty, webhook)
settingsstringYesJSON object of type-specific settings (e.g., {"addresses":"a@b.com"} for email, {"url":"..."} for slack)
disableResolveMessagebooleanNoDo not send a notification when the alert resolves
disableProvenancebooleanNoSet X-Disable-Provenance header so the contact point remains editable in the UI

Output

ParameterTypeDescription
uidstringUID of the created contact point
namestringName of the contact point
typestringReceiver type
settingsjsonType-specific settings
disableResolveMessagebooleanWhether resolve notifications are suppressed
provenancestringProvisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI

Grafana Create Annotation

Create an annotation on a dashboard or as a global annotation

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
textstringYesThe text content of the annotation
tagsstringNoComma-separated list of tags
dashboardUidstringNoUID of the dashboard to add the annotation to (e.g., abc123def). Omit to create a global organization annotation.
panelIdnumberNoID of the panel to add the annotation to (e.g., 1, 2)
timenumberNoStart time in epoch milliseconds (e.g., 1704067200000, defaults to now)
timeEndnumberNoEnd time in epoch milliseconds for range annotations (e.g., 1704153600000)

Output

ParameterTypeDescription
idnumberThe ID of the created annotation
messagestringConfirmation message

Grafana List Annotations

Query annotations by time range, dashboard, or tags

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
fromnumberNoStart time in epoch milliseconds (e.g., 1704067200000)
tonumberNoEnd time in epoch milliseconds (e.g., 1704153600000)
dashboardUidstringNoDashboard UID to query annotations from (e.g., abc123def). Omit to query annotations across the organization.
dashboardIdnumberNoLegacy numeric dashboard ID filter (prefer dashboardUid)
panelIdnumberNoFilter by panel ID (e.g., 1, 2)
alertIdnumberNoFilter by alert ID
userIdnumberNoFilter by ID of the user who created the annotation
tagsstringNoComma-separated list of tags to filter by
typestringNoFilter by type (alert or annotation)
limitnumberNoMaximum number of annotations to return (Grafana defaults to 100)

Output

ParameterTypeDescription
annotationsarrayList of annotations
idnumberAnnotation ID
alertIdnumberAssociated alert ID (0 if not alert-driven)
dashboardIdnumberDashboard ID
dashboardUIDstringDashboard UID
panelIdnumberPanel ID within the dashboard
userIdnumberID of the user who created the annotation
userNamestringUsername of the user who created the annotation
newStatestringNew alert state (alert annotations only)
prevStatestringPrevious alert state (alert annotations only)
timenumberStart time in epoch ms
timeEndnumberEnd time in epoch ms
textstringAnnotation text
metricstringMetric associated with the annotation
tagsarrayAnnotation tags
datajsonAdditional annotation data object from Grafana

Grafana Update Annotation

Update an existing annotation

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
annotationIdnumberYesThe ID of the annotation to update
textstringNoNew text content for the annotation (PATCH supports partial updates)
tagsstringNoComma-separated list of new tags
timenumberNoNew start time in epoch milliseconds (e.g., 1704067200000)
timeEndnumberNoNew end time in epoch milliseconds (e.g., 1704153600000)

Output

ParameterTypeDescription
annotationIdnumberThe annotation that was updated, echoed from the request — Grafana answers a patch with only a message and returns no id
messagestringConfirmation message from Grafana, e.g. "Annotation patched"

Grafana Delete Annotation

Delete an annotation by its ID

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
annotationIdnumberYesThe ID of the annotation to delete

Output

ParameterTypeDescription
messagestringConfirmation message

Grafana List Data Sources

List all data sources configured in Grafana

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)

Output

ParameterTypeDescription
dataSourcesarrayList of data sources
idnumberData source ID
uidstringData source UID
orgIdnumberOrganization ID
namestringData source name
typestringData source type (prometheus, mysql, etc.)
typeLogoUrlstringLogo URL for the data source type
accessstringAccess mode (proxy or direct)
urlstringData source URL
userstringUsername used to connect
databasestringDatabase name (if applicable)
basicAuthbooleanWhether basic auth is enabled
basicAuthUserstringBasic auth username
withCredentialsbooleanWhether to send credentials with cross-origin requests
isDefaultbooleanWhether this is the default data source
jsonDataobjectType-specific JSON configuration
secureJsonFieldsobjectMap of secure fields that are set (values are not returned)
versionnumberData source version
readOnlybooleanWhether the data source is read-only

Grafana Get Data Source

Get a data source by its ID or UID

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
dataSourceIdstringYesThe UID of the data source to retrieve (e.g., P1234AB5678). Numeric ids are not supported — Grafana serves those only behind a disabled-by-default feature toggle

Output

ParameterTypeDescription
idnumberData source ID
uidstringData source UID
orgIdnumberOrganization ID
namestringData source name
typestringData source type
typeLogoUrlstringLogo URL for the data source type
accessstringAccess mode (proxy or direct)
urlstringData source connection URL
userstringUsername used to connect
databasestringDatabase name (if applicable)
basicAuthbooleanWhether basic auth is enabled
basicAuthUserstringBasic auth username
withCredentialsbooleanWhether to send credentials with cross-origin requests
isDefaultbooleanWhether this is the default data source
jsonDatajsonAdditional data source configuration
secureJsonFieldsobjectMap of secure fields that are set (values are not returned)
versionnumberData source version
readOnlybooleanWhether the data source is read-only

Grafana Check Data Source Health

Test connectivity to a data source by its UID

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
dataSourceUidstringYesThe UID of the data source to health-check (e.g., P1234AB5678)

Output

ParameterTypeDescription
statusstringVerdict Grafana returned for the data source, e.g. OK or ERROR. An unhealthy source reports here rather than failing the tool
messagestringThe plugin's diagnostic detail, which carries the reason on a failed check
detailsjsonExtra structured detail, when the data source plugin supplies any

Grafana List Folders

List all folders in Grafana

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
limitnumberNoMaximum number of folders to return
pagenumberNoPage number for pagination
parentUidstringNoList children of this folder UID (requires nested folders enabled)

Output

ParameterTypeDescription
foldersarrayList of folders
idnumberFolder ID
uidstringFolder UID
titlestringFolder title
urlstringFolder URL path
parentUidstringParent folder UID (nested folders only)
parentsarrayAncestor folder hierarchy (nested folders only)
hasAclbooleanWhether the folder has custom ACL permissions
canSavebooleanWhether the current user can save the folder
canEditbooleanWhether the current user can edit the folder
canAdminbooleanWhether the current user has admin rights
createdBystringUsername of who created the folder
createdstringTimestamp when the folder was created
updatedBystringUsername of who last updated the folder
updatedstringTimestamp when the folder was last updated
versionnumberFolder version number

Grafana Create Folder

Create a new folder in Grafana

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
titlestringYesThe title of the new folder
uidstringNoOptional UID for the folder (auto-generated if not provided)
parentUidstringNoParent folder UID for nested folders (requires nested folders enabled)

Output

ParameterTypeDescription
idnumberThe numeric ID of the created folder
uidstringThe UID of the created folder
titlestringThe title of the created folder
urlstringThe URL path to the folder
parentUidstringParent folder UID (nested folders only)
parentsarrayAncestor folder hierarchy (nested folders only)
hasAclbooleanWhether the folder has custom ACL permissions
canSavebooleanWhether the current user can save the folder
canEditbooleanWhether the current user can edit the folder
canAdminbooleanWhether the current user has admin rights on the folder
createdBystringUsername of who created the folder
createdstringTimestamp when the folder was created
updatedBystringUsername of who last updated the folder
updatedstringTimestamp when the folder was last updated
versionnumberVersion number of the folder

Grafana Get Folder

Get a folder by its UID

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
folderUidstringYesThe UID of the folder to retrieve (e.g., folder-abc123)

Output

ParameterTypeDescription
idnumberThe numeric ID of the folder
uidstringThe UID of the folder
titlestringThe title of the folder
urlstringThe URL path to the folder
parentUidstringParent folder UID (nested folders only)
parentsarrayAncestor folder hierarchy (nested folders only)
hasAclbooleanWhether the folder has custom ACL permissions
canSavebooleanWhether the current user can save the folder
canEditbooleanWhether the current user can edit the folder
canAdminbooleanWhether the current user has admin rights on the folder
createdBystringUsername of who created the folder
createdstringTimestamp when the folder was created
updatedBystringUsername of who last updated the folder
updatedstringTimestamp when the folder was last updated
versionnumberVersion number of the folder

Grafana Update Folder

Update (rename) a folder. Fetches the current folder and merges your changes.

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
folderUidstringYesThe UID of the folder to update (e.g., folder-abc123)
titlestringYesNew title for the folder

Output

ParameterTypeDescription
idnumberThe numeric ID of the folder
uidstringThe UID of the folder
titlestringThe updated title of the folder
urlstringThe URL path to the folder
parentUidstringParent folder UID (nested folders only)
parentsarrayAncestor folder hierarchy (nested folders only)
hasAclbooleanWhether the folder has custom ACL permissions
canSavebooleanWhether the current user can save the folder
canEditbooleanWhether the current user can edit the folder
canAdminbooleanWhether the current user has admin rights on the folder
createdBystringUsername of who created the folder
createdstringTimestamp when the folder was created
updatedBystringUsername of who last updated the folder
updatedstringTimestamp when the folder was last updated
versionnumberVersion number of the folder

Grafana Delete Folder

Delete a folder by its UID

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
folderUidstringYesThe UID of the folder to delete (e.g., folder-abc123)
forceDeleteRulesbooleanNoDelete any alert rules stored in the folder along with it (default false)

Output

ParameterTypeDescription
idnumberNumeric id of the deleted folder, as returned by Grafana
uidstringThe UID that was deleted, echoed from the request
messagestringGrafana's confirmation message

Grafana Get Health

Check the health of the Grafana instance (version, database status)

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)

Output

ParameterTypeDescription
commitstringGit commit hash of the running Grafana build
databasestringDatabase health status (e.g., ok)
versionstringGrafana version

Grafana Update Contact Point

Replace a contact point by its UID. Grafana has no partial update for contact points, so every field is rewritten — resend the name, type, and full settings, or the omitted ones are reset.

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
contactPointUidstringYesUID of the contact point to replace
namestringYesContact point name. Grafana groups receivers that share a name
typestringYesReceiver type, e.g. slack, email, pagerduty, webhook, opsgenie, teams, discord, telegram
settingsstringYesJSON object of receiver settings for this type, e.g. { "url": "https://hooks.slack.com/..." } for slack
disableResolveMessagebooleanNoSuppress the resolved notification. Omitting this resets it to false
disableProvenancebooleanNoSend X-Disable-Provenance. Use only on a contact point whose provenance is already empty (UI-created, or created by Sim with this on) — sending it against an API-provisioned contact point is rejected with 403

Output

ParameterTypeDescription
uidstringThe UID that was updated, echoed from the request — Grafana answers a contact point update with only a message and returns no object
messagestringConfirmation message from Grafana, e.g. "contactpoint updated"

Grafana Delete Contact Point

Permanently delete a contact point by its UID. Grafana refuses the delete while the contact point is still referenced by the notification policy tree or by an alert rule.

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
contactPointUidstringYesUID of the contact point to delete

Output

ParameterTypeDescription
uidstringThe UID that was deleted, echoed from the request
messagestringConfirmation message from Grafana, e.g. "contactpoint deleted"

Grafana Move Folder

Move a folder under a different parent folder, or to the root by leaving the parent empty. Returns the folder with its new ancestry.

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
folderUidstringYesUID of the folder to move
parentUidstringNoUID of the new parent folder. Leave empty to move the folder to the root

Output

ParameterTypeDescription
idnumberThe numeric ID of the folder
uidstringThe UID of the folder
titlestringThe title of the folder
urlstringThe URL path of the folder
parentUidstringUID of the new parent folder, absent once moved to the root
parentsarrayFolder ancestry from the root down to the parent (uid, title, url)
hasAclbooleanWhether the folder has custom ACL permissions
canSavebooleanWhether the caller can save the folder
canEditbooleanWhether the caller can edit the folder
canAdminbooleanWhether the caller can administer the folder
createdBystringLogin that created the folder
createdstringCreation timestamp
updatedBystringLogin that last updated the folder
updatedstringLast update timestamp
versionnumberFolder revision number

Grafana Get Alert Rule Group

Read an alert rule group: its evaluation interval and every rule in it. The interval is the group-level knob that decides how often those rules are evaluated, which the individual alert rule operations do not expose.

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
folderUidstringYesUID of the folder holding the rule group
ruleGroupstringYesName of the rule group

Output

ParameterTypeDescription
titlestringName of the rule group
folderUidstringUID of the folder holding the group
intervalnumberHow often the group is evaluated, as an integer. Grafana returns seconds here rather than a duration string
rulesarrayProvisioned alert rules in the group
idnumberAlert rule numeric ID
uidstringAlert rule UID
titlestringAlert rule title
conditionstringRefId of the query used as the alert condition
datajsonAlert rule query/expression data array
updatedstringLast update timestamp
noDataStatestringState when no data is returned
execErrStatestringState on execution error
forstringDuration the condition must hold before firing
keepFiringForstringDuration to keep firing after condition stops
missingSeriesEvalsToResolvenumberNumber of missing series evaluations before resolving
annotationsjsonAlert annotations
labelsjsonAlert labels
isPausedbooleanWhether the rule is paused
folderUIDstringParent folder UID
ruleGroupstringRule group name
orgIDnumberOrganization ID
provenancestringProvisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI
notification_settingsjsonPer-rule notification settings (overrides)
recordjsonRecording rule configuration (recording rules only)

Grafana Query Data Source

Run one or more queries against a Grafana data source that has a backend implementation, and read the values back. This is how you get actual metric numbers out of Grafana rather than dashboard or alert configuration.

Input

ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com)
organizationIdstringNoOrganization ID for multi-org Grafana instances (e.g., 1, 2)
queriesstringYesJSON array of at least one query. Each needs a datasource.uid and a refId, plus the fields that data source expects — expr for Prometheus, rawSql for SQL. Example: [{"refId":"A","datasource":{"uid":"P123"},"expr":"up","format":"time_series"}]
fromstringNoStart of the time range, either epoch milliseconds or Grafana relative time (e.g., now-5m). Defaults to now-1h
tostringNoEnd of the time range, epoch milliseconds or relative (e.g., now)

Output

ParameterTypeDescription
resultsjsonRaw Grafana response, keyed by each query refId, each holding the frames that query produced
seriesarrayThe same frames flattened into rows, so values can be read without walking the columnar layout
refIdstringThe query this frame came from
fieldsarrayField metadata in column order
namestringField name, e.g. time or A-series
typestringField type, e.g. time or number
rowCountnumberNumber of rows in the frame
rowsarrayRows keyed by field name