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

# Administration API

> Set up and run Paradime from code: workspaces, git, connections, environments, Bolt, users, and API keys. Some areas need the Enterprise plan.

The Paradime Administration API lets you set up and run your workspaces from code instead of the **Settings** screens. Create a workspace for a new team, connect its repository and warehouses, create its environments and variables, deploy its schedules, invite its users, and read what is still missing, all with API calls.

> [!NOTE]
>
> **The Administration API is available now.** Users, Bolt, DinoAI, API keys, and setup status work on every plan. Creating and changing workspaces, and setting up their git, connections, environments, variables, integrations, and notifications, are part of the Enterprise plan. See [Plans](#plans).

## Plans

| Plan | What you get |
| - | - |
| Every plan | Read workspaces and their settings, [setup status](https://docs.paradime.io/developers/graphql-api/admin-api/setup-status.md), [users](https://docs.paradime.io/developers/graphql-api/admin-api/users), [Bolt](https://docs.paradime.io/developers/graphql-api/admin-api/bolt), [DinoAI](https://docs.paradime.io/developers/graphql-api/admin-api/dinoai), [API keys](https://docs.paradime.io/developers/graphql-api/admin-api/api-keys), and [jobs](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#async-jobs). |
| Enterprise | Everything above, plus creating, updating, and deleting [workspaces](https://docs.paradime.io/developers/graphql-api/admin-api/workspaces), [git repositories](https://docs.paradime.io/developers/graphql-api/admin-api/git-repositories), [warehouse connections](https://docs.paradime.io/developers/graphql-api/admin-api/warehouse-connections), [environments](https://docs.paradime.io/developers/graphql-api/admin-api/environments), [environment variables](https://docs.paradime.io/developers/graphql-api/admin-api/environment-variables), [integrations](https://docs.paradime.io/developers/graphql-api/admin-api/integrations), [notifications](https://docs.paradime.io/developers/graphql-api/admin-api/notifications), and [usage](https://docs.paradime.io/developers/graphql-api/admin-api/usage). |

On a plan without an operation, the request fails with `PLAN_UPGRADE_REQUIRED`. To move to the Enterprise plan, contact Paradime.

## Who it is for

* **Platform and data teams** that onboard new teams with a script, keep many workspaces set up the same way, or drive Paradime from their own tools.
* **Teams that move from dbt Cloud™**, who want to map their administrative scripts onto an API with natural keys, safe retries, and coded errors.
* **Automation and agents**, which read the [setup status](https://docs.paradime.io/developers/graphql-api/admin-api/setup-status.md) checklist to find the next step.

## How it works

* **One endpoint.** The Administration API uses the same endpoint as every other Paradime GraphQL operation: `https://<host>/api/v1/<company_token>/graphql`. Its queries and mutations sit next to the older ones in one schema, with no versions.
* **Your API keys.** Account API keys and workspace API keys both work. An account API key reaches the workspaces you selected when you created it, and the `X-Paradime-Workspace` header picks one for each request. A workspace API key acts on its own workspace. Some operations, such as `createWorkspace`, need an account API key. See [Authentication](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#authentication) and [Target a workspace](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#target-a-workspace).
* **Capability groups.** What a key can do depends on the capability groups you give it when you create it. Each area has its own groups, such as **Environment admin**, so a key gets only what it needs. See [Capability groups](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#capability-groups).
* **A graph.** Settings and lists hang off the [`Workspace`](https://docs.paradime.io/graphql-reference/types/Workspace) type, as `Workspace.environments` or `Workspace.gitRepository`. You select only the fields you need, and one query can read several areas.

```graphql theme={"system"}
query WorkspaceOverview {
  workspace {
    uid
    name
    dbtVersion
    gitRepository {
      state
      uri
    }
    environments {
      edges {
        node {
          slug
          type
          hasWarehouseConnection
        }
      }
    }
    setupStatus {
      isComplete
    }
  }
}
```

Each field in this query needs its own capability group. A field that the key can't read returns `null` with a `MISSING_CAPABILITY` error, and the other fields still return data.

## Areas

| Area | What you can do | Capability groups | Plan |
| - | - | - | - |
| [Workspaces](https://docs.paradime.io/developers/graphql-api/admin-api/workspaces) | Create, update, delete, and list workspaces. Read the dbt™ version, branches, and partial parsing setting. | Workspace admin (account API keys only), Workspace metadata viewer | Reading: every plan. Create, update, delete: Enterprise |
| [Git repositories](https://docs.paradime.io/developers/graphql-api/admin-api/git-repositories) | Connect the repository through the deploy key, the GitHub App, or GitLab. Check access and rotate the deploy key. | Git repository admin | Enterprise |
| [Warehouse connections](https://docs.paradime.io/developers/graphql-api/admin-api/warehouse-connections) | Test, create, update, delete, and list the connections of Bolt, DinoAI agents, the Code IDE, and Radar. | Warehouse connections admin | Enterprise |
| [Environments](https://docs.paradime.io/developers/graphql-api/admin-api/environments) | Create, update, and delete Bolt and agent environments. Set the defaults and an agent environment's defer target. | Environment admin | Enterprise |
| [Environment variables](https://docs.paradime.io/developers/graphql-api/admin-api/environment-variables) | Set, rename, delete, and list variables of the workspace or of one environment. Read one value with its own group. | Environment variables admin, Environment variable values viewer | Enterprise |
| [Setup status](https://docs.paradime.io/developers/graphql-api/admin-api/setup-status.md) | Read the onboarding checklist and what each product still needs. | Workspace admin, Workspace metadata viewer | Every plan |
| [Bolt](https://docs.paradime.io/developers/graphql-api/admin-api/bolt) | Create, change, and delete schedules, deploy YAML schedules, and manage Trigger URLs. | Bolt admin | Every plan |
| [Notifications](https://docs.paradime.io/developers/graphql-api/admin-api/notifications) | Read the Slack connection, set where Bolt system alerts go, and disconnect Slack. | Notifications admin | Enterprise |
| [Integrations](https://docs.paradime.io/developers/graphql-api/admin-api/integrations) | Set, test, and disconnect BI, ETL, and observability integrations, connect DinoAI agent integrations, and set secret managers. | Integrations admin, External secret managers admin | Enterprise |
| [DinoAI](https://docs.paradime.io/developers/graphql-api/admin-api/dinoai) | Manage agent definitions, the agent graph, DinoAI settings, the sync from code, and consumption budgets. | DinoAI admin | Every plan |
| [Users](https://docs.paradime.io/developers/graphql-api/admin-api/users) | List users by status, invite users, change roles, deactivate and reactivate users, and set auto-join domains. | User access admin, User access viewer | Every plan |
| [Usage](https://docs.paradime.io/developers/graphql-api/admin-api/usage) | Read Bolt and DinoAI usage for a period, by workspace. | Usage viewer | Enterprise |
| [API keys](https://docs.paradime.io/developers/graphql-api/admin-api/api-keys) | Create, list, and revoke account and workspace API keys, with no more access than the calling key. | API keys admin | Every plan |

[Conventions](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md) describes what every area shares: errors, rate limits, pagination, jobs, secrets, and the audit log. The [API reference](https://docs.paradime.io/developers/graphql-api/api-reference) has a page for every operation and type.

## How it differs from the older operations

The older operations of the [GraphQL API](https://docs.paradime.io/developers/graphql-api.md), such as `listWorkspaces` and `inviteUser`, keep working as they do. The Administration API adds new operations with new names, built in a different way:

| | Older operations | Administration API |
| - | - | - |
| Shape | Each operation is a separate root field. | Linked types: settings and lists hang off `Workspace`. A field you don't select does no work. |
| Results | A payload with `ok: true`. | The object the mutation changed, or the [job](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#async-jobs) it started. No status fields: a failure is an error. |
| Errors | Free text. | A [code](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#errors) in `extensions.code`, and the input path in `extensions.field`. |
| Lists | Offset and limit, or every row at once. | [Connections](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#pagination) with `first`, `after`, and `totalCount`. |
| Mutations | Separate arguments. | One `input` argument. |
| Retries | A retry can create a second object. | [Safe to send again](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#idempotency-and-natural-keys), by natural key. |
| Secrets | No shared rule. | [Write-only](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#secrets): reads show `has…` fields, never values. |
| Audit log | Entries don't name the API key. | Every write names the API key as the [actor](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#audit-log). |

When your account has the Administration API, the older operations also follow some of its rules:

* Errors of the older Bolt operations carry a code in `extensions.code`, from the same list.
* `listWorkspaces` and `listAllScheduleNames` return only the workspaces that the key can reach.
* `apiKeyIdentity { isValid }` is `true` for a valid account API key.
* `createScheduleSlugs` needs a key with the **Bolt schedules admin** or **Bolt admin** group.
* Every request checks that your plan still includes the capability it uses.
* The [rate limits](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#rate-limits), the [query limits](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#query-limits), and the [introspection](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#introspection) rules apply to every operation.

## Get started

**1. Create an API key**

In **Settings > API Keys**, open the **Company** tab and click **Generate API Key**. Select the workspaces, and under **Capabilities**, select the groups for the areas you need. See [API keys](https://docs.paradime.io/developers/api-keys.md).

**2. Check the key**

Send `query { workspace { uid name } }` with the key and the `X-Paradime-Workspace` header, as in [Authentication](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md#authentication).

**3. Call an area**

Start with the area you need, or follow the guide [Onboard a workspace with the API](https://docs.paradime.io/guides/set-up-and-configure/onboard-a-workspace-with-the-api.md) to set up a workspace end to end.

## Python SDK and CLI

> [card] [Python SDK](https://docs.paradime.io/developers/python-sdk/modules/admin/index)
>
> The `paradime.admin` client: typed results, pages as iterators, job waits, and rate limit retries.

> [card] [Paradime CLI](https://docs.paradime.io/developers/paradime-cli/admin-cli.md)
>
> `paradime admin` commands for workspaces, git, connections, environments, variables, and more.

> [card] [Onboard a workspace with the API](https://docs.paradime.io/guides/set-up-and-configure/onboard-a-workspace-with-the-api.md)
>
> Create a workspace and set it up step by step, from the repository to the first Bolt run.

> [card] [Conventions](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md)
>
> Authentication, capability groups, errors, limits, pagination, jobs, and secrets.


## Related topics

- [Administration API: API keys](https://docs.paradime.io/developers/graphql-api/admin-api/api-keys.md)
- [Administration API: Conventions](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md)
- [Administration API: Notifications](https://docs.paradime.io/developers/graphql-api/admin-api/notifications.md)
- [Administration API: Bolt](https://docs.paradime.io/developers/graphql-api/admin-api/bolt.md)
- [Administration API: Environments](https://docs.paradime.io/developers/graphql-api/admin-api/environments.md)


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