> ## 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.

# workspace

> One workspace the API key can reach. Any key may read its `uid`, `name` and `createdAt`; every other field needs its own capability.



**query** `workspace(workspaceUid: String): Workspace`

## Arguments

**`workspaceUid`**: `String`

The workspace's uid. Leave it out for the workspace the key targets: a workspace key's own, or the one in the `X-Paradime-Workspace` header.

## Returns

`Workspace`

**`name`**: `String!`

---

**`uid`**: `String!`

---

**`createdAt`**: `DateTime`

When the workspace was created. Null when read through `listWorkspaces`.

---

**`dbtVersion`**: `String`

The dbt version the workspace runs. Null when read through `listWorkspaces`.

---

**`supportedDbtVersions`**: `[String!]`

The dbt versions `updateWorkspace` accepts. Null when read through `listWorkspaces`.

---

**`dbtPartialParsing`**: `Boolean`

Whether dbt partial parsing is on. Null when read through `listWorkspaces`.

---

**`defaultBranch`**: `String`

The git branch Paradime treats as the repository's default; null when unset. Null when read through `listWorkspaces`.

---

**`scheduleDeploymentBranch`**: `String`

The git branch Bolt schedules deploy from; null for the default branch. Null when read through `listWorkspaces`.

---

**`boltSchedules`**: `BoltScheduleDefinitionConnection`

The workspace's schedules created in the UI or through the API, as stored, by slug. YAML schedules are not listed. Needs `bolt:schedules:list`. Null when read through `listWorkspaces`.

**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.

---

**`triggerUrls`**: `TriggerUrlConnection`

A schedule's Trigger URLs, without their secrets. Needs `bolt:trigger_urls:read`. Null when read through `listWorkspaces`.

**Arguments:**

- `scheduleSlug`: `String!` — The slug of the schedule.
- `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.

---

**`dinoAiAgentDefinitions`**: `DinoAiAgentDefinitionConnection`

The workspace's DinoAI agent definitions. Needs `dinoai:admin:read`. Null when read through `listWorkspaces`.

**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.

---

**`dinoAiAgentDefinition`**: `DinoAiAgentDefinition`

One DinoAI agent definition by slug; null when there is none. Needs `dinoai:admin:read`. Null when read through `listWorkspaces`.

**Arguments:**

- `slug`: `String!` — The agent's slug.

---

**`dinoAiSettings`**: `DinoAiWorkspaceSettings`

The workspace's DinoAI settings. Needs `dinoai:admin:read`. Null when read through `listWorkspaces`.

---

**`integrations`**: `WorkspaceIntegrationConnection`

The workspace's credential-based integrations, connected or not, without secrets. Needs `integration_settings:read`. Null when read through `listWorkspaces`.

**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.

---

**`agentIntegrations`**: `AgentIntegrationConnection`

The integrations the workspace's DinoAI agents connect through Nango, connected or not. Needs `integration_settings:read`. Null when read through `listWorkspaces`.

**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.

---

**`externalSecretsProviders`**: `ExternalSecretsProviderConnection`

The secret managers the workspace reads secrets from, without their secrets. Needs `external_secrets:read`. Null when read through `listWorkspaces`.

**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.

---

**`alertNotifications`**: `AlertNotifications`

Where one category of the workspace's alerts goes. Needs `notifications:read`. Null when read through `listWorkspaces`.

**Arguments:**

- `category`: `AlertCategory!` — The alerts to read.

---

**`autoJoinDomains`**: `[String!]`

The email domains whose users can join the workspace on sign-in without an invitation, lowercase and sorted. Set them with `setAutoJoinDomains`. Needs `users:admin:read`. Null when read through `listWorkspaces`.

---

**`warehouseConnections`**: `WarehouseConnectionConnection`

The workspace's warehouse connections of every scope, without secrets. Needs `connections:read`. Null when read through `listWorkspaces`.

**Arguments:**

- `scope`: `ConnectionScope` — Only connections of this scope.
- `environmentSlug`: `String` — Only connections of this environment.
- `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.

---

**`gitRepository`**: `GitRepository`

The workspace's git repository. Needs `git:read`. Null when read through `listWorkspaces`.

---

**`usage`**: `WorkspaceUsage`

The workspace's Bolt and DinoAI usage in a period, the numbers the Usage page shows. Needs `usage:read`. Null when read through `listWorkspaces`.

**Arguments:**

- `period`: `UsagePeriodInput!` — The period to sum usage over.

---

**`environmentVariables`**: `EnvironmentVariableConnection`

The workspace's variables, or one environment's: names and when they were last written, never values. Needs `env_vars:read`. Null when read through `listWorkspaces`.

**Arguments:**

- `scope`: `EnvironmentVariableScope` = WORKSPACE — WORKSPACE (the default) for the workspace's own variables, ENVIRONMENT for the variables of the environment `environmentSlug` names.
- `environmentSlug`: `String` — The environment's slug, with `scope: ENVIRONMENT`; leave it out for WORKSPACE.
- `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.

---

**`environments`**: `EnvironmentConnection`

The workspace's Bolt and agent environments, ordered by slug. Needs `environments:read`. Null when read through `listWorkspaces`.

**Arguments:**

- `type`: `EnvironmentType` — Only environments of this type; both types when left out.
- `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.

---

**`setupStatus`**: `WorkspaceSetupStatus`

The workspace's onboarding checklist: which steps are done, which are missing, and which wait for a person in a browser. Needs `workspaces:list`. Null when read through `listWorkspaces`.

---

**`apiKeys`**: `ApiKeyConnection`

The workspace's API keys that still work, never their tokens. Needs `api_keys:read`. Null when read through `listWorkspaces`.

**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.

## Examples

```graphql Query
query Workspace {
  workspace {
    name
    uid
    createdAt
    dbtVersion
    supportedDbtVersions
    dbtPartialParsing
  }
}
```

```json Response
{
  "data": {
    "workspace": {
      "name": "string",
      "uid": "string",
      "createdAt": "value",
      "dbtVersion": "string",
      "supportedDbtVersions": [
        "string"
      ],
      "dbtPartialParsing": true
    }
  }
}
```


## 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.