> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# workspaces

> The workspaces the API key can reach: a workspace key's own, or every workspace a company API key is allowed. Needs `workspaces:list`.



**query** `workspaces(first: Int, after: String): WorkspaceConnection!`

## Arguments

**`first`**: `Int` = 100

How many to return: 100 by default, at most 500. 0 returns only `totalCount`.

---

**`after`**: `String`

The `endCursor` of the previous page.

## Returns

`WorkspaceConnection!`

**`edges`**: `[WorkspaceEdge!]!`

This page, in order.

---

**`pageInfo`**: `PageInfo!`

Where this page sits in the list.

---

**`totalCount`**: `Int!`

How many there are across all pages.

## Examples

```graphql Query
query Workspaces {
  workspaces {
    edges {
      cursor
      node {
        name
        uid
        createdAt
        dbtVersion
        supportedDbtVersions
        dbtPartialParsing
      }
    }
    pageInfo {
      startCursor
      endCursor
      hasNextPage
      hasPreviousPage
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "workspaces": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "name": "string",
            "uid": "string",
            "createdAt": "value",
            "dbtVersion": "string",
            "supportedDbtVersions": [
              "string"
            ],
            "dbtPartialParsing": true
          }
        }
      ],
      "pageInfo": {
        "startCursor": "string",
        "endCursor": "string",
        "hasNextPage": true,
        "hasPreviousPage": true
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [Workspace identity](https://docs.paradime.io/products/settings/configuration/workspace-identity.md)
- [Workspace Management](https://docs.paradime.io/products/dino-ai/mcp-server/workspace-management.md)
- [Create a workspace](https://docs.paradime.io/guides/paradime-101/getting-started-with-your-paradime-workspace/creating-a-workspace.md)
- [Copy Workspace Variables Across Workspaces](https://docs.paradime.io/products/settings/environment-variables/copy-workspace-variables-across-workspaces.md)
- [Administration API: Workspaces](https://docs.paradime.io/developers/graphql-api/admin-api/workspaces.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.