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.
Manage dashboards, alerts, annotations, data sources, folders, and monitor health status.
Get a dashboard by its UID
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) dashboardUidstring Yes The UID of the dashboard to retrieve (e.g., abc123def)
Parameter Type Description dashboardjson The full dashboard JSON object metajson Dashboard metadata (version, permissions, etc.)
Search and list all dashboards
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) querystring No Search query to filter dashboards by title tagstring No Filter by tag (comma-separated for multiple tags) folderUIDsstring No Filter by folder UIDs (comma-separated, e.g., abc123,def456) dashboardUIDsstring No Filter by dashboard UIDs (comma-separated, e.g., abc123,def456) starredboolean No Only return starred dashboards limitnumber No Maximum number of dashboards to return (default 1000) pagenumber No Page number for pagination (1-based)
Parameter Type Description dashboardsarray List of dashboard search results ↳ id number Dashboard ID ↳ uid string Dashboard UID ↳ title string Dashboard title ↳ url string Dashboard URL path ↳ tags array Dashboard tags ↳ folderTitle string Parent folder title
Create a new dashboard
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) titlestring Yes The title of the new dashboard folderUidstring No The UID of the folder to create the dashboard in (e.g., folder-abc123) tagsstring No Comma-separated list of tags timezonestring No Dashboard timezone (e.g., browser, utc) refreshstring No Auto-refresh interval (e.g., 5s, 1m, 5m) panelsstring No JSON array of panel configurations overwriteboolean No Overwrite existing dashboard with same title messagestring No Commit message for the dashboard version
Parameter Type Description idnumber The numeric ID of the created dashboard uidstring The UID of the created dashboard urlstring The URL path to the dashboard statusstring Status of the operation (success) versionnumber The version number of the dashboard slugstring URL-friendly slug of the dashboard
Update an existing dashboard. Fetches the current dashboard and merges your changes.
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) dashboardUidstring Yes The UID of the dashboard to update (e.g., abc123def) titlestring No New title for the dashboard folderUidstring No New folder UID to move the dashboard to (e.g., folder-abc123) tagsstring No Comma-separated list of new tags timezonestring No Dashboard timezone (e.g., browser, utc) refreshstring No Auto-refresh interval (e.g., 5s, 1m, 5m) panelsstring No JSON array of panel configurations overwriteboolean No Overwrite even if there is a version conflict (defaults to false to surface 412 conflicts) messagestring No Commit message for this version
Parameter Type Description idnumber The numeric ID of the updated dashboard uidstring The UID of the updated dashboard urlstring The URL path to the dashboard statusstring Status of the operation (success) versionnumber The new version number of the dashboard slugstring URL-friendly slug of the dashboard
Delete a dashboard by its UID
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) dashboardUidstring Yes The UID of the dashboard to delete (e.g., abc123def)
Parameter Type Description titlestring The title of the deleted dashboard messagestring Confirmation message idnumber The ID of the deleted dashboard
List all alert rules in the Grafana instance
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2)
Parameter Type Description rulesarray List of alert rules ↳ id number Alert rule numeric ID ↳ uid string Alert rule UID ↳ title string Alert rule title ↳ condition string RefId of the query used as the alert condition ↳ data json Alert rule query/expression data array ↳ updated string Last update timestamp ↳ noDataState string State when no data is returned ↳ execErrState string State on execution error ↳ for string Duration the condition must hold before firing ↳ keepFiringFor string Duration to keep firing after condition stops ↳ missingSeriesEvalsToResolve number Number of missing series evaluations before resolving ↳ annotations json Alert annotations ↳ labels json Alert labels ↳ isPaused boolean Whether the rule is paused ↳ folderUID string Parent folder UID ↳ ruleGroup string Rule group name ↳ orgID number Organization ID ↳ provenance string Provisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI ↳ notification_settings json Per-rule notification settings (overrides) ↳ record json Recording rule configuration (recording rules only)
Get a specific alert rule by its UID
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) alertRuleUidstring Yes The UID of the alert rule to retrieve
Parameter Type Description idnumber Alert rule numeric ID uidstring Alert rule UID titlestring Alert rule title conditionstring RefId of the query used as the alert condition datajson Alert rule query/expression data array updatedstring Last update timestamp noDataStatestring State when no data is returned execErrStatestring State on execution error forstring Duration the condition must hold before firing keepFiringForstring Duration to keep firing after condition stops missingSeriesEvalsToResolvenumber Number of missing series evaluations before resolving annotationsjson Alert annotations labelsjson Alert labels isPausedboolean Whether the rule is paused folderUIDstring Parent folder UID ruleGroupstring Rule group name orgIDnumber Organization ID provenancestring Provisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI notification_settingsjson Per-rule notification settings (overrides) recordjson Recording rule configuration (recording rules only)
Create a new alert rule
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) titlestring Yes The title of the alert rule folderUidstring Yes The UID of the folder to create the alert in (e.g., folder-abc123) ruleGroupstring Yes The name of the rule group conditionstring No The refId of the query or expression to use as the alert condition (required for alerting rules; omit for recording rules) datastring Yes JSON array of query/expression data objects forDurationstring No Duration to wait before firing (e.g., 5m, 1h) noDataStatestring No State when no data is returned: NoData (default), Alerting, OK, or KeepLast. Ignored for recording rules execErrStatestring No State on execution error: Error (default), Alerting, OK, or KeepLast. Ignored for recording rules annotationsstring No JSON object of annotations labelsstring No JSON object of labels uidstring No Optional custom UID for the alert rule isPausedboolean No Whether the rule is paused on creation keepFiringForstring No Duration to keep firing after the condition stops (e.g., 5m) missingSeriesEvalsToResolvenumber No Number of missing series evaluations before resolving notificationSettingsstring No JSON object of per-rule notification settings (overrides) recordstring No JSON object configuring this as a recording rule (omit for alerting rules) disableProvenanceboolean No Set X-Disable-Provenance header so the rule remains editable in the Grafana UI
Parameter Type Description idnumber Alert rule numeric ID uidstring Alert rule UID titlestring Alert rule title conditionstring RefId of the query used as the alert condition datajson Alert rule query/expression data array updatedstring Last update timestamp noDataStatestring State when no data is returned execErrStatestring State on execution error forstring Duration the condition must hold before firing keepFiringForstring Duration to keep firing after condition stops missingSeriesEvalsToResolvenumber Number of missing series evaluations before resolving annotationsjson Alert annotations labelsjson Alert labels isPausedboolean Whether the rule is paused folderUIDstring Parent folder UID ruleGroupstring Rule group name orgIDnumber Organization ID provenancestring Provisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI notification_settingsjson Per-rule notification settings (overrides) recordjson Recording rule configuration (recording rules only)
Update an existing alert rule. Fetches the current rule and merges your changes.
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) alertRuleUidstring Yes The UID of the alert rule to update titlestring No New title for the alert rule folderUidstring No New folder UID to move the alert to (e.g., folder-abc123) ruleGroupstring No New rule group name conditionstring No New condition refId datastring No New JSON array of query/expression data objects forDurationstring No Duration to wait before firing (e.g., 5m, 1h) noDataStatestring No State when no data is returned (NoData, Alerting, OK) execErrStatestring No State on execution error (Error, Alerting, OK) annotationsstring No JSON object of annotations labelsstring No JSON object of labels isPausedboolean No Whether the rule is paused keepFiringForstring No Duration to keep firing after the condition stops (e.g., 5m) missingSeriesEvalsToResolvenumber No Number of missing series evaluations before resolving notificationSettingsstring No JSON object of per-rule notification settings (overrides) recordstring No JSON object configuring this as a recording rule disableProvenanceboolean No Set X-Disable-Provenance header so the rule remains editable in the Grafana UI
Parameter Type Description idnumber Alert rule numeric ID uidstring Alert rule UID titlestring Alert rule title conditionstring RefId of the query used as the alert condition datajson Alert rule query/expression data array updatedstring Last update timestamp noDataStatestring State when no data is returned execErrStatestring State on execution error forstring Duration the condition must hold before firing keepFiringForstring Duration to keep firing after condition stops missingSeriesEvalsToResolvenumber Number of missing series evaluations before resolving annotationsjson Alert annotations labelsjson Alert labels isPausedboolean Whether the rule is paused folderUIDstring Parent folder UID ruleGroupstring Rule group name orgIDnumber Organization ID provenancestring Provisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI notification_settingsjson Per-rule notification settings (overrides) recordjson Recording rule configuration (recording rules only)
Delete an alert rule by its UID
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) alertRuleUidstring Yes The UID of the alert rule to delete
Parameter Type Description messagestring Confirmation message
List all alert notification contact points
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) namestring No Filter contact points by exact name match
Parameter Type Description contactPointsarray List of contact points ↳ uid string Contact point UID ↳ name string Contact point name ↳ type string Notification type (email, slack, etc.) ↳ settings json Type-specific settings ↳ disableResolveMessage boolean Whether resolve messages are disabled ↳ provenance string Provisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI
Create a notification contact point (e.g., Slack, email, PagerDuty)
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) namestring Yes Name of the contact point (groups receivers shown in the UI) typestring Yes Receiver type (e.g., slack, email, pagerduty, webhook) settingsstring Yes JSON object of type-specific settings (e.g., {"addresses":"a@b.com "} for email, {"url":"..."} for slack) disableResolveMessageboolean No Do not send a notification when the alert resolves disableProvenanceboolean No Set X-Disable-Provenance header so the contact point remains editable in the UI
Parameter Type Description uidstring UID of the created contact point namestring Name of the contact point typestring Receiver type settingsjson Type-specific settings disableResolveMessageboolean Whether resolve notifications are suppressed provenancestring Provisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI
Create an annotation on a dashboard or as a global annotation
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) textstring Yes The text content of the annotation tagsstring No Comma-separated list of tags dashboardUidstring No UID of the dashboard to add the annotation to (e.g., abc123def). Omit to create a global organization annotation. panelIdnumber No ID of the panel to add the annotation to (e.g., 1, 2) timenumber No Start time in epoch milliseconds (e.g., 1704067200000, defaults to now) timeEndnumber No End time in epoch milliseconds for range annotations (e.g., 1704153600000)
Parameter Type Description idnumber The ID of the created annotation messagestring Confirmation message
Query annotations by time range, dashboard, or tags
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) fromnumber No Start time in epoch milliseconds (e.g., 1704067200000) tonumber No End time in epoch milliseconds (e.g., 1704153600000) dashboardUidstring No Dashboard UID to query annotations from (e.g., abc123def). Omit to query annotations across the organization. dashboardIdnumber No Legacy numeric dashboard ID filter (prefer dashboardUid) panelIdnumber No Filter by panel ID (e.g., 1, 2) alertIdnumber No Filter by alert ID userIdnumber No Filter by ID of the user who created the annotation tagsstring No Comma-separated list of tags to filter by typestring No Filter by type (alert or annotation) limitnumber No Maximum number of annotations to return (Grafana defaults to 100)
Parameter Type Description annotationsarray List of annotations ↳ id number Annotation ID ↳ alertId number Associated alert ID (0 if not alert-driven) ↳ dashboardId number Dashboard ID ↳ dashboardUID string Dashboard UID ↳ panelId number Panel ID within the dashboard ↳ userId number ID of the user who created the annotation ↳ userName string Username of the user who created the annotation ↳ newState string New alert state (alert annotations only) ↳ prevState string Previous alert state (alert annotations only) ↳ time number Start time in epoch ms ↳ timeEnd number End time in epoch ms ↳ text string Annotation text ↳ metric string Metric associated with the annotation ↳ tags array Annotation tags ↳ data json Additional annotation data object from Grafana
Update an existing annotation
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) annotationIdnumber Yes The ID of the annotation to update textstring No New text content for the annotation (PATCH supports partial updates) tagsstring No Comma-separated list of new tags timenumber No New start time in epoch milliseconds (e.g., 1704067200000) timeEndnumber No New end time in epoch milliseconds (e.g., 1704153600000)
Parameter Type Description annotationIdnumber The annotation that was updated, echoed from the request — Grafana answers a patch with only a message and returns no id messagestring Confirmation message from Grafana, e.g. "Annotation patched"
Delete an annotation by its ID
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) annotationIdnumber Yes The ID of the annotation to delete
Parameter Type Description messagestring Confirmation message
List all data sources configured in Grafana
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2)
Parameter Type Description dataSourcesarray List of data sources ↳ id number Data source ID ↳ uid string Data source UID ↳ orgId number Organization ID ↳ name string Data source name ↳ type string Data source type (prometheus, mysql, etc.) ↳ typeLogoUrl string Logo URL for the data source type ↳ access string Access mode (proxy or direct) ↳ url string Data source URL ↳ user string Username used to connect ↳ database string Database name (if applicable) ↳ basicAuth boolean Whether basic auth is enabled ↳ basicAuthUser string Basic auth username ↳ withCredentials boolean Whether to send credentials with cross-origin requests ↳ isDefault boolean Whether this is the default data source ↳ jsonData object Type-specific JSON configuration ↳ secureJsonFields object Map of secure fields that are set (values are not returned) ↳ version number Data source version ↳ readOnly boolean Whether the data source is read-only
Get a data source by its ID or UID
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) dataSourceIdstring Yes The 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
Parameter Type Description idnumber Data source ID uidstring Data source UID orgIdnumber Organization ID namestring Data source name typestring Data source type typeLogoUrlstring Logo URL for the data source type accessstring Access mode (proxy or direct) urlstring Data source connection URL userstring Username used to connect databasestring Database name (if applicable) basicAuthboolean Whether basic auth is enabled basicAuthUserstring Basic auth username withCredentialsboolean Whether to send credentials with cross-origin requests isDefaultboolean Whether this is the default data source jsonDatajson Additional data source configuration secureJsonFieldsobject Map of secure fields that are set (values are not returned) versionnumber Data source version readOnlyboolean Whether the data source is read-only
Test connectivity to a data source by its UID
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) dataSourceUidstring Yes The UID of the data source to health-check (e.g., P1234AB5678)
Parameter Type Description statusstring Verdict Grafana returned for the data source, e.g. OK or ERROR. An unhealthy source reports here rather than failing the tool messagestring The plugin's diagnostic detail, which carries the reason on a failed check detailsjson Extra structured detail, when the data source plugin supplies any
List all folders in Grafana
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) limitnumber No Maximum number of folders to return pagenumber No Page number for pagination parentUidstring No List children of this folder UID (requires nested folders enabled)
Parameter Type Description foldersarray List of folders ↳ id number Folder ID ↳ uid string Folder UID ↳ title string Folder title ↳ url string Folder URL path ↳ parentUid string Parent folder UID (nested folders only) ↳ parents array Ancestor folder hierarchy (nested folders only) ↳ hasAcl boolean Whether the folder has custom ACL permissions ↳ canSave boolean Whether the current user can save the folder ↳ canEdit boolean Whether the current user can edit the folder ↳ canAdmin boolean Whether the current user has admin rights ↳ createdBy string Username of who created the folder ↳ created string Timestamp when the folder was created ↳ updatedBy string Username of who last updated the folder ↳ updated string Timestamp when the folder was last updated ↳ version number Folder version number
Create a new folder in Grafana
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) titlestring Yes The title of the new folder uidstring No Optional UID for the folder (auto-generated if not provided) parentUidstring No Parent folder UID for nested folders (requires nested folders enabled)
Parameter Type Description idnumber The numeric ID of the created folder uidstring The UID of the created folder titlestring The title of the created folder urlstring The URL path to the folder parentUidstring Parent folder UID (nested folders only) parentsarray Ancestor folder hierarchy (nested folders only) hasAclboolean Whether the folder has custom ACL permissions canSaveboolean Whether the current user can save the folder canEditboolean Whether the current user can edit the folder canAdminboolean Whether the current user has admin rights on the folder createdBystring Username of who created the folder createdstring Timestamp when the folder was created updatedBystring Username of who last updated the folder updatedstring Timestamp when the folder was last updated versionnumber Version number of the folder
Get a folder by its UID
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) folderUidstring Yes The UID of the folder to retrieve (e.g., folder-abc123)
Parameter Type Description idnumber The numeric ID of the folder uidstring The UID of the folder titlestring The title of the folder urlstring The URL path to the folder parentUidstring Parent folder UID (nested folders only) parentsarray Ancestor folder hierarchy (nested folders only) hasAclboolean Whether the folder has custom ACL permissions canSaveboolean Whether the current user can save the folder canEditboolean Whether the current user can edit the folder canAdminboolean Whether the current user has admin rights on the folder createdBystring Username of who created the folder createdstring Timestamp when the folder was created updatedBystring Username of who last updated the folder updatedstring Timestamp when the folder was last updated versionnumber Version number of the folder
Update (rename) a folder. Fetches the current folder and merges your changes.
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) folderUidstring Yes The UID of the folder to update (e.g., folder-abc123) titlestring Yes New title for the folder
Parameter Type Description idnumber The numeric ID of the folder uidstring The UID of the folder titlestring The updated title of the folder urlstring The URL path to the folder parentUidstring Parent folder UID (nested folders only) parentsarray Ancestor folder hierarchy (nested folders only) hasAclboolean Whether the folder has custom ACL permissions canSaveboolean Whether the current user can save the folder canEditboolean Whether the current user can edit the folder canAdminboolean Whether the current user has admin rights on the folder createdBystring Username of who created the folder createdstring Timestamp when the folder was created updatedBystring Username of who last updated the folder updatedstring Timestamp when the folder was last updated versionnumber Version number of the folder
Delete a folder by its UID
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) folderUidstring Yes The UID of the folder to delete (e.g., folder-abc123) forceDeleteRulesboolean No Delete any alert rules stored in the folder along with it (default false)
Parameter Type Description idnumber Numeric id of the deleted folder, as returned by Grafana uidstring The UID that was deleted, echoed from the request messagestring Grafana's confirmation message
Check the health of the Grafana instance (version, database status)
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2)
Parameter Type Description commitstring Git commit hash of the running Grafana build databasestring Database health status (e.g., ok) versionstring Grafana version
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.
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) contactPointUidstring Yes UID of the contact point to replace namestring Yes Contact point name. Grafana groups receivers that share a name typestring Yes Receiver type, e.g. slack, email, pagerduty, webhook, opsgenie, teams, discord, telegram settingsstring Yes JSON object of receiver settings for this type, e.g. { "url": "https://hooks.slack.com/ ..." } for slack disableResolveMessageboolean No Suppress the resolved notification. Omitting this resets it to false disableProvenanceboolean No Send 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
Parameter Type Description uidstring The UID that was updated, echoed from the request — Grafana answers a contact point update with only a message and returns no object messagestring Confirmation message from Grafana, e.g. "contactpoint updated"
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.
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) contactPointUidstring Yes UID of the contact point to delete
Parameter Type Description uidstring The UID that was deleted, echoed from the request messagestring Confirmation message from Grafana, e.g. "contactpoint deleted"
Move a folder under a different parent folder, or to the root by leaving the parent empty. Returns the folder with its new ancestry.
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) folderUidstring Yes UID of the folder to move parentUidstring No UID of the new parent folder. Leave empty to move the folder to the root
Parameter Type Description idnumber The numeric ID of the folder uidstring The UID of the folder titlestring The title of the folder urlstring The URL path of the folder parentUidstring UID of the new parent folder, absent once moved to the root parentsarray Folder ancestry from the root down to the parent (uid, title, url) hasAclboolean Whether the folder has custom ACL permissions canSaveboolean Whether the caller can save the folder canEditboolean Whether the caller can edit the folder canAdminboolean Whether the caller can administer the folder createdBystring Login that created the folder createdstring Creation timestamp updatedBystring Login that last updated the folder updatedstring Last update timestamp versionnumber Folder revision number
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.
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) folderUidstring Yes UID of the folder holding the rule group ruleGroupstring Yes Name of the rule group
Parameter Type Description titlestring Name of the rule group folderUidstring UID of the folder holding the group intervalnumber How often the group is evaluated, as an integer. Grafana returns seconds here rather than a duration string rulesarray Provisioned alert rules in the group ↳ id number Alert rule numeric ID ↳ uid string Alert rule UID ↳ title string Alert rule title ↳ condition string RefId of the query used as the alert condition ↳ data json Alert rule query/expression data array ↳ updated string Last update timestamp ↳ noDataState string State when no data is returned ↳ execErrState string State on execution error ↳ for string Duration the condition must hold before firing ↳ keepFiringFor string Duration to keep firing after condition stops ↳ missingSeriesEvalsToResolve number Number of missing series evaluations before resolving ↳ annotations json Alert annotations ↳ labels json Alert labels ↳ isPaused boolean Whether the rule is paused ↳ folderUID string Parent folder UID ↳ ruleGroup string Rule group name ↳ orgID number Organization ID ↳ provenance string Provisioning source — "api" for API-managed, empty when created with X-Disable-Provenance and therefore still editable in the Grafana UI ↳ notification_settings json Per-rule notification settings (overrides) ↳ record json Recording rule configuration (recording rules only)
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.
Inputs and outputsParameter Type Required Description apiKeystring Yes Grafana Service Account Token baseUrlstring Yes Grafana instance URL (e.g., https://your-grafana.com ) organizationIdstring No Organization ID for multi-org Grafana instances (e.g., 1, 2) queriesstring Yes JSON 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"}] fromstring No Start of the time range, either epoch milliseconds or Grafana relative time (e.g., now-5m). Defaults to now-1h tostring No End of the time range, epoch milliseconds or relative (e.g., now)
Parameter Type Description resultsjson Raw Grafana response, keyed by each query refId, each holding the frames that query produced seriesarray The same frames flattened into rows, so values can be read without walking the columnar layout ↳ refId string The query this frame came from ↳ fields array Field metadata in column order ↳ name string Field name, e.g. time or A-series ↳ type string Field type, e.g. time or number ↳ rowCount number Number of rows in the frame ↳ rows array Rows keyed by field name