{ "opencollection": "1.0.0", "info": { "name": "Grafana HTTP Access Queries API", "version": "11.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Queries", "type": "folder" }, "items": [ { "info": { "name": "Grafana Query Metrics With Expressions", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.grafana.net/api/ds/query", "body": { "type": "json", "data": "{}" } }, "docs": "This API operation enables querying of metrics data in Grafana using the datasource query endpoint, supporting advanced query expressions and transformations. It accepts POST requests at the /ds/query endpoint and allows users to execute complex queries against configured data sources, combining multiple queries with mathematical expressions, statistical functions, and data transformations to derive meaningful insights from time-series data. The operation supports various datasource types and re" }, { "info": { "name": "Grafana Search Queries", "type": "http" }, "http": { "method": "GET", "url": "https://{instance}.grafana.net/api/query-history", "params": [ { "name": "datasourceUid", "value": "", "type": "query", "description": "List of data source UIDs to search for" }, { "name": "searchString", "value": "", "type": "query", "description": "Text inside query or comments that is searched for" }, { "name": "onlyStarred", "value": "", "type": "query", "description": "Flag indicating if only starred queries should be returned" }, { "name": "sort", "value": "", "type": "query", "description": "Sort method" }, { "name": "page", "value": "", "type": "query", "description": "Use this parameter to access hits beyond limit. Numbering starts at 1. limit param acts as page size." }, { "name": "limit", "value": "", "type": "query", "description": "Limit the number of returned results" }, { "name": "from", "value": "", "type": "query", "description": "From range for the query history search" }, { "name": "to", "value": "", "type": "query", "description": "To range for the query history search" } ] }, "docs": "Retrieves a paginated list of query history entries from Grafana based on specified search criteria. This endpoint allows users to filter and search through their saved query history, returning matching queries along with relevant metadata such as query text, timestamp, data source information, and user details. The operation supports various filtering parameters to narrow down results and includes pagination controls to manage large result sets efficiently." }, { "info": { "name": "Grafana Create Query", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.grafana.net/api/query-history", "body": { "type": "json", "data": "{}" } }, "docs": "This API operation allows users to create a new entry in Grafana's query history by sending a POST request to the /query-history endpoint. It enables users to save queries they've executed for future reference, tracking, or reuse purposes. The operation typically accepts query details such as the datasource, query text, timestamp, and potentially additional metadata like comments or tags. This functionality is particularly useful for maintaining an audit trail of queries, sharing queries among t" }, { "info": { "name": "Grafana Star Query", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.grafana.net/api/query-history/star/:query_history_uid", "params": [ { "name": "query_history_uid", "value": "", "type": "path" } ] }, "docs": "This API operation allows users to mark a specific query in Grafana's query history as a favorite by starring it. By sending a POST request to the endpoint with a unique query history identifier (query_history_uid), users can flag important or frequently used queries for easier access and reference later. The starred status helps organize and prioritize queries within the query history, making it simpler to locate and reuse commonly executed queries without having to search through the entire hi" }, { "info": { "name": "Grafana Unstar Query", "type": "http" }, "http": { "method": "DELETE", "url": "https://{instance}.grafana.net/api/query-history/star/:query_history_uid", "params": [ { "name": "query_history_uid", "value": "", "type": "path" } ] }, "docs": "The Grafana unstar query operation is accessed via a DELETE request to the endpoint /query-history/star/{query_history_uid}, where the query_history_uid parameter represents the unique identifier of a previously executed query in the query history. This operation removes the star or favorite marking from a specific query, effectively unmarking it as a saved or bookmarked item in the user's query history. When invoked, it allows users to unmark queries they no longer wish to highlight or quickly " }, { "info": { "name": "Grafana Patch Query Comment", "type": "http" }, "http": { "method": "PATCH", "url": "https://{instance}.grafana.net/api/query-history/:query_history_uid", "params": [ { "name": "query_history_uid", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the comment of a specific query in the query history by its unique identifier. This endpoint allows users to modify the descriptive comment associated with a previously executed query, making it easier to document and organize query history. The operation requires the query history UID as a path parameter and accepts the updated comment data in the request body. This is useful for adding context, notes, or explanations to queries after they have been run, improving collaboration and quer" }, { "info": { "name": "Grafana Delete Query", "type": "http" }, "http": { "method": "DELETE", "url": "https://{instance}.grafana.net/api/query-history/:query_history_uid", "params": [ { "name": "query_history_uid", "value": "", "type": "path" } ] }, "docs": "This API operation removes a specific query from the Grafana query history by targeting its unique identifier (query_history_uid). When executed, it permanently deletes the query entry associated with the provided UID from the system's query history records. This is useful for cleaning up unwanted or obsolete queries that users no longer need to reference, helping maintain an organized query history within Grafana." }, { "info": { "name": "Grafana Query Public Dashboard", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.grafana.net/api/public/dashboards/:accessToken/panels/:panelId/query", "params": [ { "name": "accessToken", "value": "", "type": "path" }, { "name": "panelId", "value": "", "type": "path" } ] }, "docs": "The Grafana POST endpoint at /public/dashboards/{accessToken}/panels/{panelId}/query enables querying data from a specific panel within a publicly shared dashboard. This operation requires an access token that grants permission to view the public dashboard and a panel ID to identify which panel's data should be retrieved. The endpoint allows external applications or users to programmatically fetch panel data without authentication beyond the public access token, making it useful for embedding da" }, { "info": { "name": "Grafana Remove Team Group Api Query", "type": "http" }, "http": { "method": "DELETE", "url": "https://{instance}.grafana.net/api/teams/:teamId/groups", "params": [ { "name": "groupId", "value": "", "type": "query" }, { "name": "teamId", "value": "", "type": "path" } ] }, "docs": "This API operation removes an external group mapping from a specified team in Grafana. When executed, it performs a DELETE request to the endpoint /teams/{teamId}/groups, where {teamId} represents the unique identifier of the team from which the group association should be removed. The operation is used to disconnect external authentication provider groups (such as LDAP, OAuth, or SAML groups) from Grafana teams, effectively revoking the automatic team membership that was granted to users belong" } ] } ], "bundled": true }