---
title: "List caches"
method: GET
path: "/repositories/{workspace}/{repo_slug}/pipelines-config/caches"
tags: ["Pipelines"]
---

# List caches

`GET /repositories/{workspace}/{repo_slug}/pipelines-config/caches`

## Request

- Base URL: `https://api.bitbucket.org/2.0`
- URL: `https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines-config/caches`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://bitbucket.org/site/oauth2/authorize`
    - Token URL: `https://bitbucket.org/site/oauth2/access_token` scopes: `pipeline`
  - HTTP basic
  - API key in header `Authorization`

Retrieve the repository pipelines caches.

## Path parameters

- `workspace` string, required
- `repo_slug` string, required

## Response `200`

The list of caches for the given repository.

- PaginatedPipelineCaches: A paged list of pipeline caches
  - `page` integer: Page number of the current results. This is an optional element that is not provided in all responses.
  - `values` PipelineCache[]: The values of the current page.
    - `type` string, required
    - `uuid` string: The UUID identifying the pipeline cache.
    - `pipeline_uuid` string: The UUID of the pipeline that created the cache.
    - `step_uuid` string: The uuid of the step that created the cache.
    - `name` string: The name of the cache.
    - `key_hash` string: The key hash of the cache version.
    - `path` string: The path where the cache contents were retrieved from.
    - `file_size_bytes` integer: The size of the file containing the archive of the cache.
    - `created_on` string, date-time: The timestamp when the cache was created.
  - `size` integer: Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute.
  - `pagelen` integer: Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.
  - `next` string, uri: Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs.
  - `previous` string, uri: Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs.

## Other responses

- `404`: The account or repository was not found.

---

[API](https://skmtc.dev/atlassian/apis/bitbucket-api.md) - [All operations](https://skmtc.dev/atlassian/apis/bitbucket-api/llms.txt) - [OpenAPI document](https://skmtc.dev/atlassian/apis/bitbucket-api/revisions/6ae783fa75da?raw)
