---
schema: rendered-html/v1
title: "Saved Queries | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/resource-api-savedQueries.html
generated_at: 2026-06-11T15:13:34.533838+00:00
---

Feedback

Thanks for your feedback!

Was this page helpful?

YesNo

Developer Portal for YouTrack and Hub

- Developer Portal
- Apps
- MCP Tools
- YouTrack Workflows
- YouTrack Import Scripts
- YouTrack Form API
- YouTrack REST API
- Get Started with REST API
- REST API Reference
- Entities
- Resources
- Activity Items
- Issue Activities Page
- Build Bundles
- Enum Bundles
- Owned Bundles
- State Bundles
- User Bundles
- Version Bundles
- Custom Fields
- Field Types
- Backup Files
- Database Backup Settings
- Global Settings
- Organizations
- Projects
- Telemetry data
- Global Time Tracking Settings
- Agiles
- Articles
- Assigned Roles
- Commands
- Command Suggestions
- User Groups
- Issue Link Types
- Issue Tag
- [Issues](jetbrains__com__help__youtrack__devportal__resource-api-issues.md)
- [Issue Count](jetbrains__com__help__youtrack__devportal__resource-api-issuesgetter-count.md)
- [Permissions](jetbrains__com__help__youtrack__devportal__resource-api-permissions.md)
- [Roles](jetbrains__com__help__youtrack__devportal__resource-api-roles.md)
- [Saved Queries](resource-api-savedQueries.html)
- Operations with Specific SavedQuery
- [Search Suggestions](jetbrains__com__help__youtrack__devportal__resource-api-search-assist.md)
- [Tags](jetbrains__com__help__youtrack__devportal__resource-api-tags.md)
- Users
- [My User Profile](jetbrains__com__help__youtrack__devportal__resource-api-users-me.md)
- Issue Work Items
- REST API Use Cases
- REST API Troubleshooting
- Color Indices List
- Hub REST API

1. YouTrack REST API
2. REST API Reference
3. Resources
4. [Saved Queries](#0)

# Saved Queries﻿

Last modified: 24 March 2026

This resource lets you access and work with saved searches in YouTrack.

| Resource | ``` /api/savedQueries ``` |
| --- | --- |
| Returned entity | SavedQuery. For the description of the entity attributes, see [Supported Fields](/help/youtrack/devportal/resource-api-savedQueries.html#SavedQuery-supported-fields) section. |
| Supported methods | - `GET`: [Read a List of SavedQueries](/help/youtrack/devportal/resource-api-savedQueries.html#get_all-SavedQuery-method). - `POST`: [Add a New SavedQuery](/help/youtrack/devportal/resource-api-savedQueries.html#create-SavedQuery-method). |

## SavedQuery attributes﻿

Represents a saved search.

### Related Resources﻿

Below you can find the list of resources that let you work with this entity.

- Saved Queries
- Saved Queries of a User

Extends WatchFolder

### Attributes﻿

This table describes attributes of the `SavedQuery` entity.

- To receive an attribute in the response from the server, specify it explicitly in the `fields` request parameter.
- To update an attribute, provide it in the body of a POST request.

| Field | Type | Description |
| --- | --- | --- |
| id | String | The ID of the saved search. `Read-only`. |
| query | String | The query that is saved in this search. `Can be null`. |
| issues | Array of Issues | The collection of issues that match this saved search. `Read-only`. |
| visibleFor | UserGroup | Deprecated. Use the `readSharingSettings` attribute instead.  Group of users that can see this saved search. If the saved search is visible only to its owner, this property is null.  `Can be null`. |
| updateableBy | UserGroup | Deprecated. Use the `updateSharingSettings` attribute instead.  Group of users that can update this saved search. If only the owner of the saved search can update it, this property is null.  `Can be null`. |
| readSharingSettings | WatchFolderSharingSettings | Users and groups that can see this saved search. If the saved search is visible only to its owner, this property contains an empty array. `Read-only`. |
| updateSharingSettings | WatchFolderSharingSettings | Users and groups that can update this saved search. If only the owner of the saved search can update it, this property contains an empty array. `Read-only`. |
| owner | User | The user who created the watch folder. `Read-only`. `Can be null`. |
| name | String | The name of the issue folder. |

## Read a List of SavedQueries﻿

Get all saved searches that are visible to the current user.

### Request syntax﻿

```
GET /api/savedQueries?{fields}&{$top}&{$skip}
```

| null | The database ID of SavedQuery |
| --- | --- |

### Request parameters﻿

| Parameter | Type | Description |
| --- | --- | --- |
| fields | String | A list of SavedQuery attributes that should be returned in the response. If no field is specified, only the `entityID` is returned. |
| $skip | Int | Optional. Lets you set a number of returned entities to skip before returning the first one. |
| $top | Int | Optional. Lets you specify the maximum number of entries that are returned in the response. If you don't set the $top value, the server limits the maximum number of returned entries.  The server returns a maximum of 42 entries for most resources that return collections. For more information, see Pagination. |

### Sample﻿

#### Sample request﻿

```
https://example.youtrack.cloud/api/savedQueries?fields=id,name,query,owner(login,name),visibleFor(name,id),issues(idReadable,summary)&$skip=8&$top=3
```

#### Sample response body﻿

```
[
  {
    "issues": [
      {
        "summary": "Example for Get specific issue tag",
        "idReadable": "RAP-2",
        "$type": "Issue"
      {
        "summary": "REST API lets you create issues!",
        "idReadable": "SP-46",
        "$type": "Issue"
      {
        "summary": "Issue from REST #1",
        "idReadable": "SP-16",
        "$type": "Issue"
      {
        "summary": "Issue from REST #1",
        "idReadable": "SP-7",
        "$type": "Issue"
      {
        "summary": "New summary",
        "idReadable": "SP-38",
        "$type": "Issue"
      }
    ],
    "query": "for: me",
    "visibleFor": {
      "name": "All Users",
      "id": "3-0",
      "$type": "UserGroup"
    "owner": {
      "login": "search_user_1918800649",
      "name": "system user",
      "$type": "User"
    "name": "Assigned to me",
    "id": "51-15",
    "$type": "SavedQuery"
  {
    "issues": [
      {
        "summary": "REST API lets you create issues!",
        "idReadable": "SP-34",
        "$type": "Issue"
      {
        "summary": "Issue from REST #1",
        "idReadable": "SP-16",
        "$type": "Issue"
      {
        "summary": "Issue from REST #1",
        "idReadable": "SP-7",
        "$type": "Issue"
      {
        "summary": "Another issue created using REST API",
        "idReadable": "SP-32",
        "$type": "Issue"
      }
    ],
    "query": "commenter: me",
    "visibleFor": {
      "name": "All Users",
      "id": "3-0",
      "$type": "UserGroup"
    "owner": {
      "login": "search_user_1918800649",
      "name": "system user",
      "$type": "User"
    "name": "Commented by me",
    "id": "51-16",
    "$type": "SavedQuery"
  {
    "issues": [],
    "query": "project: {Scrum project from REST} has: -{Board Scrum project from REST Project Development} #Unresolved -Epic",
    "visibleFor": null,
    "owner": {
      "login": "john.doe",
      "name": "John Doe",
      "$type": "User"
    "name": "Scrum project from REST Scrum-Board-Backlog",
    "id": "51-17",
    "$type": "SavedQuery"
  }
]
```

## Add a New SavedQuery﻿

Create a new saved search.

Required fields: `name`, `query`.

### Required permissions﻿

Requires permissions: Create Watch Folder

### Request syntax﻿

```
POST /api/savedQueries?{fields}
```

| null | The database ID of SavedQuery |
| --- | --- |

### Request parameters﻿

| Parameter | Type | Description |
| --- | --- | --- |
| fields | String | A list of SavedQuery attributes that should be returned in the response. If no field is specified, only the `entityID` is returned. |

### Sample﻿

#### Sample request﻿

```
https://example.youtrack.cloud/api/savedQueries?fields=id,name,query,owner(login,name),visibleFor(name,id),issues(id,idReadable,summary)
```

#### Sample request body﻿

```
{
  "query": "Priority: Major, Critical, Show-stopper #Unresolved",
  "name": "Requires Attention"
}
```

#### Sample response body﻿

```
{
  "query": "Priority: Major, Critical, Show-stopper #Unresolved",
  "issues": [
    {
      "idReadable": "SP-47",
      "summary": "REST API lets you create issues!",
      "$type": "Issue"
    {
      "idReadable": "SP-46",
      "summary": "REST API lets you create issues!",
      "$type": "Issue"
    {
      "idReadable": "SP-45",
      "summary": "REST API lets you create issues!",
      "$type": "Issue"
    {
      "idReadable": "SP-44",
      "summary": "REST API lets you create issues!",
      "$type": "Issue"
    {
      "idReadable": "SP-39",
      "summary": "Huston!",
      "$type": "Issue"
    {
      "idReadable": "SP-38",
      "summary": "New summary",
      "$type": "Issue"
    }
  ],
  "visibleFor": null,
  "owner": {
    "login": "john.doe",
    "name": "John Doe",
    "$type": "User"
  "name": "Requires Attention",
  "id": "51-34",
  "$type": "SavedQuery"
}
```

- [Saved Queries](/help/youtrack/devportal/resource-api-savedQueries.html)
- [SavedQuery attributes](/help/youtrack/devportal/resource-api-savedQueries.html#SavedQuery-supported-fields)
- [Read a List of SavedQueries](/help/youtrack/devportal/resource-api-savedQueries.html#get_all-SavedQuery-method)
- [Add a New SavedQuery](/help/youtrack/devportal/resource-api-savedQueries.html#create-SavedQuery-method)

Operations with Specific RoleOperations with Specific SavedQuery

- Privacy & Security
- Terms Of Use
- Trademarks
- Legal

Copyright © 2000–2026 JetBrains s.r.o.

![](https://bat.bing.com/action/0?ti=5220035&tm=gtm002&Ver=2&mid=102e275f-8631-4e9e-9089-4aa6267aa8b7&bo=4&sid=452929b065a111f19a7fe7356f74a419&vid=aa3122f0648711f1a10d6d095e10fd87&vids=0&msclkid=N&pi=918639831&lg=en-US&sw=1920&sh=1080&sc=24&tl=Saved%20Queries%20%7C%20Developer%20Portal%20for%20YouTrack%20and%20Hub%20Documentation&p=https%3A%2F%2Fwww.jetbrains.com%2Fhelp%2Fyoutrack%2Fdevportal%2Fresource-api-savedQueries.html&r=&lt=640&pt=1781190812034,47,47,,,2,2,2,2,2,,2,29,29,51,222,222,223,639,640,640&pn=0,0&evt=pageLoad&sv=2&asc=G&cdb=AQAS&rn=772605)

![](https://crawler.prototype.prolicht.digital/l/clJihZ)![](https://crawler.prototype.prolicht.digital/l/tdkeRT)
