Grafana · Capability

Grafana — Routes

Grafana — Routes. 45 operations. Lead operation: Grafana Route Convert Prometheus Cortex Get Rules. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaRoutes

What You Can Do

GET
Routeconvertprometheuscortexgetrules — Grafana Route Convert Prometheus Cortex Get Rules
/v1/convert/api/prom/rules
POST
Routeconvertprometheuscortexpostrulegroups — Grafana Route Convert Prometheus Cortex Post Rule Groups
/v1/convert/api/prom/rules
GET
Routeconvertprometheuscortexgetnamespace — Grafana Route Convert Prometheus Cortex Get Namespace
/v1/convert/api/prom/rules/{namespacetitle}
POST
Routeconvertprometheuscortexpostrulegroup — Grafana Route Convert Prometheus Cortex Post Rule Group
/v1/convert/api/prom/rules/{namespacetitle}
DELETE
Routeconvertprometheuscortexdeletenamespace — Grafana Route Convert Prometheus Cortex Delete Namespace
/v1/convert/api/prom/rules/{namespacetitle}
GET
Routeconvertprometheuscortexgetrulegroup — Grafana Route Convert Prometheus Cortex Get Rule Group
/v1/convert/api/prom/rules/{namespacetitle}/{group}
DELETE
Routeconvertprometheuscortexdeleterulegroup — Grafana Route Convert Prometheus Cortex Delete Rule Group
/v1/convert/api/prom/rules/{namespacetitle}/{group}
GET
Routeconvertprometheusgetrules — Grafana Route Convert Prometheus Get Rules
/v1/convert/prometheus/config/v1/rules
POST
Routeconvertprometheuspostrulegroups — Grafana Route Convert Prometheus Post Rule Groups
/v1/convert/prometheus/config/v1/rules
GET
Routeconvertprometheusgetnamespace — Grafana Route Convert Prometheus Get Namespace
/v1/convert/prometheus/config/v1/rules/{namespacetitle}
POST
Routeconvertprometheuspostrulegroup — Grafana Route Convert Prometheus Post Rule Group
/v1/convert/prometheus/config/v1/rules/{namespacetitle}
DELETE
Routeconvertprometheusdeletenamespace — Grafana Route Convert Prometheus Delete Namespace
/v1/convert/prometheus/config/v1/rules/{namespacetitle}
GET
Routeconvertprometheusgetrulegroup — Grafana Route Convert Prometheus Get Rule Group
/v1/convert/prometheus/config/v1/rules/{namespacetitle}/{group}
DELETE
Routeconvertprometheusdeleterulegroup — Grafana Route Convert Prometheus Delete Rule Group
/v1/convert/prometheus/config/v1/rules/{namespacetitle}/{group}
GET
Routegetalertrules — Grafana Route Get Alert Rules
/v1/v1/provisioning/alert-rules
POST
Routepostalertrule — Grafana Route Post Alert Rule
/v1/v1/provisioning/alert-rules
GET
Routegetalertrulesexport — Grafana Route Get Alert Rules Export
/v1/v1/provisioning/alert-rules/export
GET
Routegetalertrule — Grafana Route Get Alert Rule
/v1/v1/provisioning/alert-rules/{uid}
PUT
Routeputalertrule — Grafana Route Put Alert Rule
/v1/v1/provisioning/alert-rules/{uid}
DELETE
Routedeletealertrule — Grafana Route Delete Alert Rule
/v1/v1/provisioning/alert-rules/{uid}
GET
Routegetalertruleexport — Grafana Route Get Alert Rule Export
/v1/v1/provisioning/alert-rules/{uid}/export
GET
Routegetcontactpoints — Grafana Route Get Contactpoints
/v1/v1/provisioning/contact-points
POST
Routepostcontactpoints — Grafana Route Post Contactpoints
/v1/v1/provisioning/contact-points
GET
Routegetcontactpointsexport — Grafana Route Get Contactpoints Export
/v1/v1/provisioning/contact-points/export
PUT
Routeputcontactpoint — Grafana Route Put Contactpoint
/v1/v1/provisioning/contact-points/{uid}
DELETE
Routedeletecontactpoints — Grafana Route Delete Contactpoints
/v1/v1/provisioning/contact-points/{uid}
GET
Routegetalertrulegroup — Grafana Route Get Alert Rule Group
/v1/v1/provisioning/folder/{folderuid}/rule-groups/{group}
PUT
Routeputalertrulegroup — Grafana Route Put Alert Rule Group
/v1/v1/provisioning/folder/{folderuid}/rule-groups/{group}
DELETE
Routedeletealertrulegroup — Grafana Route Delete Alert Rule Group
/v1/v1/provisioning/folder/{folderuid}/rule-groups/{group}
GET
Routegetalertrulegroupexport — Grafana Route Get Alert Rule Group Export
/v1/v1/provisioning/folder/{folderuid}/rule-groups/{group}/export
GET
Routegetmutetimings — Grafana Route Get Mute Timings
/v1/v1/provisioning/mute-timings
POST
Routepostmutetiming — Grafana Route Post Mute Timing
/v1/v1/provisioning/mute-timings
GET
Routeexportmutetimings — Grafana Route Export Mute Timings
/v1/v1/provisioning/mute-timings/export
GET
Routegetmutetiming — Grafana Route Get Mute Timing
/v1/v1/provisioning/mute-timings/{name}
PUT
Routeputmutetiming — Grafana Route Put Mute Timing
/v1/v1/provisioning/mute-timings/{name}
DELETE
Routedeletemutetiming — Grafana Route Delete Mute Timing
/v1/v1/provisioning/mute-timings/{name}
GET
Routeexportmutetiming — Grafana Route Export Mute Timing
/v1/v1/provisioning/mute-timings/{name}/export
GET
Routegetpolicytree — Grafana Route Get Policy Tree
/v1/v1/provisioning/policies
PUT
Routeputpolicytree — Grafana Route Put Policy Tree
/v1/v1/provisioning/policies
DELETE
Routeresetpolicytree — Grafana Route Reset Policy Tree
/v1/v1/provisioning/policies
GET
Routegetpolicytreeexport — Grafana Route Get Policy Tree Export
/v1/v1/provisioning/policies/export
GET
Routegettemplates — Grafana Route Get Templates
/v1/v1/provisioning/templates
GET
Routegettemplate — Grafana Route Get Template
/v1/v1/provisioning/templates/{name}
PUT
Routeputtemplate — Grafana Route Put Template
/v1/v1/provisioning/templates/{name}
DELETE
Routedeletetemplate — Grafana Route Delete Template
/v1/v1/provisioning/templates/{name}

MCP Tools

grafana-route-convert-prometheus-cortex

Grafana Route Convert Prometheus Cortex Get Rules

read-only idempotent
grafana-route-convert-prometheus-cortex-2

Grafana Route Convert Prometheus Cortex Post Rule Groups

grafana-route-convert-prometheus-cortex-3

Grafana Route Convert Prometheus Cortex Get Namespace

read-only idempotent
grafana-route-convert-prometheus-cortex-4

Grafana Route Convert Prometheus Cortex Post Rule Group

grafana-route-convert-prometheus-cortex-5

Grafana Route Convert Prometheus Cortex Delete Namespace

idempotent
grafana-route-convert-prometheus-cortex-6

Grafana Route Convert Prometheus Cortex Get Rule Group

read-only idempotent
grafana-route-convert-prometheus-cortex-7

Grafana Route Convert Prometheus Cortex Delete Rule Group

idempotent
grafana-route-convert-prometheus-get

Grafana Route Convert Prometheus Get Rules

read-only idempotent
grafana-route-convert-prometheus-post

Grafana Route Convert Prometheus Post Rule Groups

grafana-route-convert-prometheus-get-2

Grafana Route Convert Prometheus Get Namespace

read-only idempotent
grafana-route-convert-prometheus-post-2

Grafana Route Convert Prometheus Post Rule Group

grafana-route-convert-prometheus-delete

Grafana Route Convert Prometheus Delete Namespace

idempotent
grafana-route-convert-prometheus-get-3

Grafana Route Convert Prometheus Get Rule Group

read-only idempotent
grafana-route-convert-prometheus-delete-2

Grafana Route Convert Prometheus Delete Rule Group

idempotent
grafana-route-get-alert-rules

Grafana Route Get Alert Rules

read-only idempotent
grafana-route-post-alert-rule

Grafana Route Post Alert Rule

grafana-route-get-alert-rules-2

Grafana Route Get Alert Rules Export

read-only idempotent
grafana-route-get-alert-rule

Grafana Route Get Alert Rule

read-only idempotent
grafana-route-put-alert-rule

Grafana Route Put Alert Rule

idempotent
grafana-route-delete-alert-rule

Grafana Route Delete Alert Rule

idempotent
grafana-route-get-alert-rule-2

Grafana Route Get Alert Rule Export

read-only idempotent
grafana-route-get-contactpoints

Grafana Route Get Contactpoints

read-only idempotent
grafana-route-post-contactpoints

Grafana Route Post Contactpoints

grafana-route-get-contactpoints-export

Grafana Route Get Contactpoints Export

read-only idempotent
grafana-route-put-contactpoint

Grafana Route Put Contactpoint

idempotent
grafana-route-delete-contactpoints

Grafana Route Delete Contactpoints

idempotent
grafana-route-get-alert-rule-3

Grafana Route Get Alert Rule Group

read-only idempotent
grafana-route-put-alert-rule-2

Grafana Route Put Alert Rule Group

idempotent
grafana-route-delete-alert-rule-2

Grafana Route Delete Alert Rule Group

idempotent
grafana-route-get-alert-rule-4

Grafana Route Get Alert Rule Group Export

read-only idempotent
grafana-route-get-mute-timings

Grafana Route Get Mute Timings

read-only idempotent
grafana-route-post-mute-timing

Grafana Route Post Mute Timing

grafana-route-export-mute-timings

Grafana Route Export Mute Timings

read-only idempotent
grafana-route-get-mute-timing

Grafana Route Get Mute Timing

read-only idempotent
grafana-route-put-mute-timing

Grafana Route Put Mute Timing

idempotent
grafana-route-delete-mute-timing

Grafana Route Delete Mute Timing

idempotent
grafana-route-export-mute-timing

Grafana Route Export Mute Timing

read-only idempotent
grafana-route-get-policy-tree

Grafana Route Get Policy Tree

read-only idempotent
grafana-route-put-policy-tree

Grafana Route Put Policy Tree

idempotent
grafana-route-reset-policy-tree

Grafana Route Reset Policy Tree

idempotent
grafana-route-get-policy-tree-2

Grafana Route Get Policy Tree Export

read-only idempotent
grafana-route-get-templates

Grafana Route Get Templates

read-only idempotent
grafana-route-get-template

Grafana Route Get Template

read-only idempotent
grafana-route-put-template

Grafana Route Put Template

idempotent
grafana-route-delete-template

Grafana Route Delete Template

idempotent

Capability Spec

grafana-routes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Routes
  description: 'Grafana — Routes. 45 operations. Lead operation: Grafana Route Convert Prometheus Cortex Get Rules. Self-contained
    Naftiko capability covering one Grafana business surface.'
  tags:
  - Grafana
  - Routes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-routes
    baseUri: http://{defaultHost}
    description: Grafana — Routes business capability. Self-contained, no shared references.
    resources:
    - name: convert-api-prom-rules
      path: /convert/api/prom/rules
      operations:
      - name: routeconvertprometheuscortexgetrules
        method: GET
        description: Grafana Route Convert Prometheus Cortex Get Rules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: routeconvertprometheuscortexpostrulegroups
        method: POST
        description: Grafana Route Convert Prometheus Cortex Post Rule Groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: convert-api-prom-rules-NamespaceTitle
      path: /convert/api/prom/rules/{NamespaceTitle}
      operations:
      - name: routeconvertprometheuscortexgetnamespace
        method: GET
        description: Grafana Route Convert Prometheus Cortex Get Namespace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NamespaceTitle
          in: path
          type: string
          required: true
      - name: routeconvertprometheuscortexpostrulegroup
        method: POST
        description: Grafana Route Convert Prometheus Cortex Post Rule Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NamespaceTitle
          in: path
          type: string
          required: true
        - name: x-grafana-alerting-datasource-uid
          in: header
          type: string
        - name: x-grafana-alerting-recording-rules-paused
          in: header
          type: boolean
        - name: x-grafana-alerting-alert-rules-paused
          in: header
          type: boolean
        - name: x-grafana-alerting-target-datasource-uid
          in: header
          type: string
        - name: x-grafana-alerting-folder-uid
          in: header
          type: string
        - name: x-grafana-alerting-notification-settings
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: routeconvertprometheuscortexdeletenamespace
        method: DELETE
        description: Grafana Route Convert Prometheus Cortex Delete Namespace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NamespaceTitle
          in: path
          type: string
          required: true
    - name: convert-api-prom-rules-NamespaceTitle-Group
      path: /convert/api/prom/rules/{NamespaceTitle}/{Group}
      operations:
      - name: routeconvertprometheuscortexgetrulegroup
        method: GET
        description: Grafana Route Convert Prometheus Cortex Get Rule Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NamespaceTitle
          in: path
          type: string
          required: true
        - name: Group
          in: path
          type: string
          required: true
      - name: routeconvertprometheuscortexdeleterulegroup
        method: DELETE
        description: Grafana Route Convert Prometheus Cortex Delete Rule Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NamespaceTitle
          in: path
          type: string
          required: true
        - name: Group
          in: path
          type: string
          required: true
    - name: convert-prometheus-config-v1-rules
      path: /convert/prometheus/config/v1/rules
      operations:
      - name: routeconvertprometheusgetrules
        method: GET
        description: Grafana Route Convert Prometheus Get Rules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: routeconvertprometheuspostrulegroups
        method: POST
        description: Grafana Route Convert Prometheus Post Rule Groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: convert-prometheus-config-v1-rules-NamespaceTitle
      path: /convert/prometheus/config/v1/rules/{NamespaceTitle}
      operations:
      - name: routeconvertprometheusgetnamespace
        method: GET
        description: Grafana Route Convert Prometheus Get Namespace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NamespaceTitle
          in: path
          type: string
          required: true
      - name: routeconvertprometheuspostrulegroup
        method: POST
        description: Grafana Route Convert Prometheus Post Rule Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NamespaceTitle
          in: path
          type: string
          required: true
        - name: x-grafana-alerting-datasource-uid
          in: header
          type: string
        - name: x-grafana-alerting-recording-rules-paused
          in: header
          type: boolean
        - name: x-grafana-alerting-alert-rules-paused
          in: header
          type: boolean
        - name: x-grafana-alerting-target-datasource-uid
          in: header
          type: string
        - name: x-grafana-alerting-folder-uid
          in: header
          type: string
        - name: x-grafana-alerting-notification-settings
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: routeconvertprometheusdeletenamespace
        method: DELETE
        description: Grafana Route Convert Prometheus Delete Namespace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NamespaceTitle
          in: path
          type: string
          required: true
    - name: convert-prometheus-config-v1-rules-NamespaceTitle-Group
      path: /convert/prometheus/config/v1/rules/{NamespaceTitle}/{Group}
      operations:
      - name: routeconvertprometheusgetrulegroup
        method: GET
        description: Grafana Route Convert Prometheus Get Rule Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NamespaceTitle
          in: path
          type: string
          required: true
        - name: Group
          in: path
          type: string
          required: true
      - name: routeconvertprometheusdeleterulegroup
        method: DELETE
        description: Grafana Route Convert Prometheus Delete Rule Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: NamespaceTitle
          in: path
          type: string
          required: true
        - name: Group
          in: path
          type: string
          required: true
    - name: v1-provisioning-alert-rules
      path: /v1/provisioning/alert-rules
      operations:
      - name: routegetalertrules
        method: GET
        description: Grafana Route Get Alert Rules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: routepostalertrule
        method: POST
        description: Grafana Route Post Alert Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Disable-Provenance
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-provisioning-alert-rules-export
      path: /v1/provisioning/alert-rules/export
      operations:
      - name: routegetalertrulesexport
        method: GET
        description: Grafana Route Get Alert Rules Export
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: download
          in: query
          type: boolean
          description: Whether to initiate a download of the file or not.
        - name: format
          in: query
          type: string
          description: Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the
            query parameter will take precedence.
        - name: folderUid
          in: query
          type: array
          description: UIDs of folders from which to export rules
        - name: group
          in: query
          type: string
          description: Name of group of rules to export. Must be specified only together with a single folder UID
        - name: ruleUid
          in: query
          type: string
          description: UID of alert rule to export. If specified, parameters folderUid and group must be empty.
    - name: v1-provisioning-alert-rules-UID
      path: /v1/provisioning/alert-rules/{UID}
      operations:
      - name: routegetalertrule
        method: GET
        description: Grafana Route Get Alert Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: UID
          in: path
          type: string
          description: Alert rule UID
          required: true
      - name: routeputalertrule
        method: PUT
        description: Grafana Route Put Alert Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: UID
          in: path
          type: string
          description: Alert rule UID
          required: true
        - name: X-Disable-Provenance
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: routedeletealertrule
        method: DELETE
        description: Grafana Route Delete Alert Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: UID
          in: path
          type: string
          description: Alert rule UID
          required: true
        - name: X-Disable-Provenance
          in: header
          type: string
    - name: v1-provisioning-alert-rules-UID-export
      path: /v1/provisioning/alert-rules/{UID}/export
      operations:
      - name: routegetalertruleexport
        method: GET
        description: Grafana Route Get Alert Rule Export
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: download
          in: query
          type: boolean
          description: Whether to initiate a download of the file or not.
        - name: format
          in: query
          type: string
          description: Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the
            query parameter will take precedence.
        - name: UID
          in: path
          type: string
          description: Alert rule UID
          required: true
    - name: v1-provisioning-contact-points
      path: /v1/provisioning/contact-points
      operations:
      - name: routegetcontactpoints
        method: GET
        description: Grafana Route Get Contactpoints
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: query
          type: string
          description: Filter by name
      - name: routepostcontactpoints
        method: POST
        description: Grafana Route Post Contactpoints
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Disable-Provenance
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-provisioning-contact-points-export
      path: /v1/provisioning/contact-points/export
      operations:
      - name: routegetcontactpointsexport
        method: GET
        description: Grafana Route Get Contactpoints Export
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: download
          in: query
          type: boolean
          description: Whether to initiate a download of the file or not.
        - name: format
          in: query
          type: string
          description: Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the
            query parameter will take precedence.
        - name: decrypt
          in: query
          type: boolean
          description: 'Whether any contained secure settings should be decrypted or left redacted. Redacted settings will
            contain RedactedValue instead. Currently, only org admin can '
        - name: name
          in: query
          type: string
          description: Filter by name
    - name: v1-provisioning-contact-points-UID
      path: /v1/provisioning/contact-points/{UID}
      operations:
      - name: routeputcontactpoint
        method: PUT
        description: Grafana Route Put Contactpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: UID
          in: path
          type: string
          description: UID is the contact point unique identifier
          required: true
        - name: X-Disable-Provenance
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: routedeletecontactpoints
        method: DELETE
        description: Grafana Route Delete Contactpoints
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: UID
          in: path
          type: string
          description: UID is the contact point unique identifier
          required: true
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: v1-provisioning-folder-FolderUID-rule-groups-Group
      path: /v1/provisioning/folder/{FolderUID}/rule-groups/{Group}
      operations:
      - name: routegetalertrulegroup
        method: GET
        description: Grafana Route Get Alert Rule Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: FolderUID
          in: path
          type: string
          required: true
        - name: Group
          in: path
          type: string
          required: true
      - name: routeputalertrulegroup
        method: PUT
        description: Grafana Route Put Alert Rule Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Disable-Provenance
          in: header
          type: string
        - name: FolderUID
          in: path
          type: string
          required: true
        - name: Group
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: routedeletealertrulegroup
        method: DELETE
        description: Grafana Route Delete Alert Rule Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: FolderUID
          in: path
          type: string
          required: true
        - name: Group
          in: path
          type: string
          required: true
    - name: v1-provisioning-folder-FolderUID-rule-groups-Group-export
      path: /v1/provisioning/folder/{FolderUID}/rule-groups/{Group}/export
      operations:
      - name: routegetalertrulegroupexport
        method: GET
        description: Grafana Route Get Alert Rule Group Export
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: download
          in: query
          type: boolean
          description: Whether to initiate a download of the file or not.
        - name: format
          in: query
          type: string
          description: Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the
            query parameter will take precedence.
        - name: FolderUID
          in: path
          type: string
          required: true
        - name: Group
          in: path
          type: string
          required: true
    - name: v1-provisioning-mute-timings
      path: /v1/provisioning/mute-timings
      operations:
      - name: routegetmutetimings
        method: GET
        description: Grafana Route Get Mute Timings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: routepostmutetiming
        method: POST
        description: Grafana Route Post Mute Timing
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Disable-Provenance
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-provisioning-mute-timings-export
      path: /v1/provisioning/mute-timings/export
      operations:
      - name: routeexportmutetimings
        method: GET
        description: Grafana Route Export Mute Timings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: download
          in: query
          type: boolean
          description: Whether to initiate a download of the file or not.
        - name: format
          in: query
          type: string
          description: Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the
            query parameter will take precedence.
    - name: v1-provisioning-mute-timings-name
      path: /v1/provisioning/mute-timings/{name}
      operations:
      - name: routegetmutetiming
        method: GET
        description: Grafana Route Get Mute Timing
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Mute timing name
          required: true
      - name: routeputmutetiming
        method: PUT
        description: Grafana Route Put Mute Timing
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Mute timing name
          required: true
        - name: X-Disable-Provenance
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: routedeletemutetiming
        method: DELETE
        description: Grafana Route Delete Mute Timing
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Mute timing name
          required: true
        - name: version
          in: query
          type: string
          description: Version of mute timing to use for optimistic concurrency. Leave empty to disable validation
        - name: X-Disable-Provenance
          in: header
          type: string
    - name: v1-provisioning-mute-timings-name-export
      path: /v1/provisioning/mute-timings/{name}/export
      operations:
      - name: routeexportmutetiming
        method: GET
        description: Grafana Route Export Mute Timing
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: download
          in: query
          type: boolean
          description: Whether to initiate a download of the file or not.
        - name: format
          in: query
          type: string
          description: Format of the downloaded file. Supported yaml, json or hcl. Accept header can also be used, but the
            query parameter will take precedence.
        - name: name
          in: path
          type: string
          description: Mute timing name
          required: true
    - name: v1-provisioning-policies
      path: /v1/provisioning/policies
      operations:
      - name: routegetpolicytree
        method: GET
        description: Grafana Route Get Policy Tree
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: routeputpolicytree
        method: PUT
        description: Grafana Route Put Policy Tree
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Disable-Provenance
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: routeresetpolicytree
        method: DELETE
        description: Grafana Route Reset Policy Tree
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: v1-provisioning-policies-export
      path: /v1/provisioning/policies/export
      operations:
      - name: routegetpolicytreeexport
        method: GET
        description: Grafana Route Get Policy Tree Export
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-provisioning-templates
      path: /v1/provisioning/templates
      operations:
      - name: routegettemplates
        method: GET
        description: Grafana Route Get Templates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-provisioning-templates-name
      path: /v1/provisioning/templates/{name}
      operations:
      - name: routegettemplate
        method: GET
        description: Grafana Route Get Template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Template group name
          required: true
      - name: routeputtemplate
        method: PUT
        description: Grafana Route Put Template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Template group name
          required: true
        - name: X-Disable-Provenance
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: routedeletetemplate
        method: DELETE
        description: Grafana Route Delete Template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Template group name
          required: true
        - name: version
          in: query
          type: string
          description: Version of template to use for optimistic concurrency. Leave empty to disable validation
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.GRAFANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: grafana-routes-rest
    port: 8080
    description: REST adapter for Grafana — Routes. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/convert/api/prom/rules
      name: convert-api-prom-rules
      description: REST surface for convert-api-prom-rules.
      operations:
      - method: GET
        name: routeconvertprometheuscortexgetrules
        description: Grafana Route Convert Prometheus Cortex Get Rules
        call: grafana-routes.routeconvertprometheuscortexgetrules
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: routeconvertprometheuscortexpostrulegroups
        description: Grafana Route Convert Prometheus Cortex Post Rule Groups
        call: grafana-routes.routeconvertprometheuscortexpostrulegroups
        with:
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/convert/api/prom/rules/{namespacetitle}
      name: convert-api-prom-rules-namespacetitle
      description: REST surface for convert-api-prom-rules-NamespaceTitle.
      operations:
      - method: GET
        name: routeconvertprometheuscortexgetnamespace
        description: Grafana Route Convert Prometheus Cortex Get Namespace
        call: grafana-routes.routeconvertprometheuscortexgetnamespace
        with:
          NamespaceTitle: rest.NamespaceTitle
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: routeconvertprometheuscortexpostrulegroup
        description: Grafana Route Convert Prometheus Cortex Post Rule Group
        call: grafana-routes.routeconvertprometheuscortexpostrulegroup
        with:
          NamespaceTitle: rest.NamespaceTitle
          x-grafana-alerting-datasource-uid: rest.x-grafana-alerting-datasource-uid
          x-grafana-alerting-recording-rules-paused: rest.x-grafana-alerting-recording-rules-paused
          x-grafana-alerting-alert-rules-paused: rest.x-grafana-alerting-alert-rules-paused
          x-grafana-alerting-target-datasource-uid: rest.x-grafana-alerting-target-datasource-uid
          x-grafana-alerting-folder-uid: rest.x-grafana-alerting-folder-uid
          x-grafana-alerting-notification-settings: rest.x-grafana-alerting-notification-settings
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: routeconvertprometheuscortexdeletenamespace
        description: Grafana Route Convert Prometheus Cortex Delete Namespace
        call: grafana-routes.routeconvertprometheuscortexdeletenamespace
        with:
          NamespaceTitle: rest.NamespaceTitle
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/convert/api/prom/rules/{namespacetitle}/{group}
      name: convert-api-prom-rules-namespacetitle-group
      description: REST surface for convert-api-prom-rules-NamespaceTitle-Group.
      operations:
      - method: GET
        name: routeconvertprometheuscortexgetrulegroup
        description: Grafana Route Convert Prometheus Cortex Get Rule Group
        call: grafana-routes.routeconvertprometheuscortexgetrulegroup
        with:
          NamespaceTitle: rest.NamespaceTitle
          Group: rest.Group
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: routeconvertprometheuscortexdeleterulegroup
        description: Grafana Route Convert Prometheus Cortex Delete Rule Group
        call: grafana-routes.routeconvertprometheuscortexdeleterulegroup
        with:
          NamespaceTitle: rest.NamespaceTitle
          Group: rest.Group
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/convert/prometheus/config/v1/rules
      name: convert-prometheus-config-v1-rules
      description: REST surface for convert-prometheus-config-v1-rules.
      operations:
      - method: GET
        name: routeconvertprometheusgetrules
        description: Grafana Route Convert Prometheus Get Rules
        call: grafana-routes.routeconvertprometheusgetrules
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: routeconvertprometheuspostrulegroups
        description: Grafana Route Convert Prometheus Post Rule Groups
        call: grafana-routes.routeconvertprometheuspostrulegroups
        with:
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/convert/prometheus/config/v1/rules/{namespacetitle}
      name: convert-prometheus-config-v1-rules-namespacetitle
      description: REST surface for convert-prometheus-config-v1-rules-NamespaceTitle.
      operations:
      - method: GET
        name: routeconvertprometheusgetnamespace
        description: Grafana Route Convert Prometheus Get Namespace
        call: grafana-routes.routeconvertprometheusgetnamespace
        with:
          NamespaceTitle: rest.NamespaceTitle
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: routeconvertprometheuspostrulegroup
        description: Grafana Route Convert Prometheus Post Rule Group
        call: grafana-routes.routeconvertprometheuspostrulegroup
        with:
          NamespaceTitle: rest.NamespaceTitle
          x-grafana-alerting-datasource-uid: rest.x-grafana-alerting-datasource-uid
          x-grafana-alerting-recording-rules-paused: rest.x-grafana-alerting-recording-rules-paused
          x-grafana-alerting-alert-rules-paused: rest.x-grafana-alerting-alert-rules-paused
          x-grafana-alerting-target-datasource-uid: rest.x-grafana-alerting-target-datasource-uid
          x-grafana-alerting-folder-uid: rest.x-grafana-alerting-folder-uid
          x-grafana-alerting-notification-settings: rest.x-grafana-alerting-notification-settings
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  

# --- truncated at 32 KB (64 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/grafana/refs/heads/main/capabilities/grafana-routes.yaml