---
title: "List workspaces for the current user"
method: GET
path: "/user/workspaces"
tags: ["Workspaces"]
---

# List workspaces for the current user

`GET /user/workspaces`

Returns an object for each workspace accessible to the caller. This object
also contains details on whether the caller has admin permissions on the workspace
(`"administrator" = true`) or not (`"administrator" = false`).

Queries support filtering based on administrator permissions,
[sorting](/cloud/bitbucket/rest/intro/#sorting-query-results) or
[filtering](/cloud/bitbucket/rest/intro/#filtering) by `slug`. Results can
be [paginated](/cloud/bitbucket/rest/intro/#pagination).

## Query parameters

- `sort` string
- `administrator` boolean

## Response `200`

The list of workspaces accessible by the authenticated user.

- PaginatedWorkspaceAccess — A paginated list of workspace permissions.
  - `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.
  - `page` integer — Page number of the current results. This is an optional element that is not provided in all responses.
  - `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.
  - `values` WorkspaceAccess[]
    - `type` string, required
    - `administrator` boolean — The permission level the user has for the workspace. True if the user is an administrator, otherwise False.
    - `workspace` WorkspaceBase — A Bitbucket workspace. Workspaces are used to organize repositories.
      - `type` string, required
      - `links` object
        - `avatar` object — A link to a resource related to this object.
          - `href` string, uri
          - `name` string
        - `self` object — A link to a resource related to this object.
          - `href` string, uri
          - `name` string
      - `uuid` string — The workspace's immutable id.
      - `slug` string — The short label that identifies this workspace.

## Other responses

- `400` — The request was invalid.
- `401` — The request wasn't authenticated.

---

[API](https://skmtc.net/bitbucket/apis/bitbucket-api.md) · [All operations](https://skmtc.net/bitbucket/apis/bitbucket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitbucket/bitbucket-api/versions/7e9be973015d/schema)
