# Bytebase Saved Query Service API

**Canonical:** https://apis.io/apis/bytebase/bytebase-savedqueryservice-api/  
**Provider:** Bytebase — https://apis.io/providers/bytebase/  
**Base URL:** https://demo.bytebase.com/v1  
**Documentation:** https://docs.bytebase.com/integrations/api/overview

Bytebase Saved Query Service API is one of 33 APIs that [Bytebase](https://apis.io/providers/bytebase/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include SavedQueryService. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

SavedQueryService manages saved queries in the SQL Editor. A saved query is private to its creator until shared. Permissions come from three places: - The creator owns the saved query and holds every permission on it. - A VIEWER binding grants bb.savedQueries.get and getIamPolicy; an EDITOR binding adds update. - Permissions granted on the project or workspace apply to every saved query in the project, private ones included. A caller without a method's permission gets NotFound, not PermissionDenied, so private names stay unprobeable. Running a saved query is governed by the SQL Editor's database permissions, not by this service.

## Operations (11)

| Method | Path | Summary |
|---|---|---|
| GET | `/v1/projects/{project}/savedQueries` | ListSavedQueries |
| POST | `/v1/projects/{project}/savedQueries` | CreateSavedQuery |
| GET | `/v1/projects/{project}/savedQueries/{savedQuery}` | GetSavedQuery |
| DELETE | `/v1/projects/{project}/savedQueries/{savedQuery}` | DeleteSavedQuery |
| PATCH | `/v1/projects/{project}/savedQueries/{savedQuery}` | UpdateSavedQuery |
| GET | `/v1/projects/{project}/savedQueries/{savedQuery}:getPolicy` | GetSavedQueryPolicy |
| POST | `/v1/projects/{project}/savedQueries/{savedQuery}:setPolicy` | SetSavedQueryPolicy |
| POST | `/v1/projects/{project}/savedQueries/{savedQuery}:updateStar` | UpdateSavedQueryStar |
| POST | `/v1/projects/{project}/savedQueries:moveMy` | MoveMySavedQueries |
| POST | `/v1/projects/{project}/savedQueries:search` | SearchSavedQueries |
| POST | `/v1/projects/{project}/savedQueries:searchFolders` | SearchSavedQueryFolders |

## Machine-readable artifacts (5)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/bytebase/refs/heads/main/openapi/bytebase-savedqueryservice-api-openapi.yml
- **Documentation** — https://docs.bytebase.com/integrations/api/overview
- **APIReference** — https://api.bytebase.com/
- **PostmanCollection** — https://raw.githubusercontent.com/api-evangelist/bytebase/refs/heads/main/collections/bytebase.postman_collection.json
- **OpenCollection** — https://raw.githubusercontent.com/api-evangelist/bytebase/refs/heads/main/collections/bytebase.opencollection.json

## Other Bytebase APIs (12)

- [Bytebase Access Grant Service API](https://apis.io/apis/bytebase/bytebase-accessgrantservice-api/)
- [Bytebase Actuator Service API](https://apis.io/apis/bytebase/bytebase-actuatorservice-api/)
- [Bytebase AI Service API](https://apis.io/apis/bytebase/bytebase-aiservice-api/)
- [Bytebase Audit Log Service API](https://apis.io/apis/bytebase/bytebase-auditlogservice-api/)
- [Bytebase Cel Service API](https://apis.io/apis/bytebase/bytebase-celservice-api/)
- [Bytebase Changelog Service API](https://apis.io/apis/bytebase/bytebase-changelogservice-api/)
- [Bytebase Database Catalog Service API](https://apis.io/apis/bytebase/bytebase-databasecatalogservice-api/)
- [Bytebase Database Group Service API](https://apis.io/apis/bytebase/bytebase-databasegroupservice-api/)
- [Bytebase Database Service API](https://apis.io/apis/bytebase/bytebase-databaseservice-api/)
- [Bytebase Group Service API](https://apis.io/apis/bytebase/bytebase-groupservice-api/)
- [Bytebase Identity Provider Service API](https://apis.io/apis/bytebase/bytebase-identityproviderservice-api/)
- [Bytebase Instance Role Service API](https://apis.io/apis/bytebase/bytebase-instanceroleservice-api/)

## Tags

SavedQueryService

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/bytebase/bytebase-savedqueryservice-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/bytebase/.
