Skip to main content
Create a Paradime workspace and make it ready for the Code IDE, Bolt and DinoAI agents from a script, with the Administration API. Each step shows the Python SDK, the paradime admin CLI where it has a command, and the GraphQL operation.
Prerequisites
  • The Enterprise plan. Creating a workspace and setting up its git, connections, environments, and variables need it.
  • A company API key (prdm_cmp_...) and its API endpoint. Create the key in Settings > API Keys with these capability groups: Workspace admin, Git repository admin, Warehouse connections admin, Environment admin, Environment variables admin, Bolt admin, Bolt schedules admin, Notifications admin and User access admin. See API keys.
  • Python 3.11 or later and the latest paradime-io package (pip install --upgrade paradime-io).
  • Admin access to the git repository, to add a deploy key.
  • Warehouse credentials for the service users that Bolt and DinoAI agents run as. The examples use Snowflake with key pair authentication.
Estimated time: 20 minutes.
For GraphQL, send every request to your API endpoint with Authorization: Bearer <company API key>. From step 2 on, also send X-Paradime-Workspace: <workspace uid> so that the request acts on the new workspace. In the CLI, set PARADIME_API_ENDPOINT, PARADIME_API_SECRET and, from step 2 on, PARADIME_WORKSPACE_UID.

Steps

1

Create the workspace

Create the workspace with the company API key. The key can reach the new workspace at once. Sending the same name again returns the same workspace, so the step is safe to retry.
The new workspace has no members, and it comes with two environments: a default Bolt environment named Production and a default agent environment named Agent. Step 5 reads their slugs.
2

Add the deploy key to your repository

Read the workspace’s deploy key, then add it to your git repository as a deploy key with write access. With write access, your team can commit and push from the Code IDE. The key with Git repository admin creates the workspace’s first deploy key when it reads it.
Add the key on your git host. For GitHub, open the repository’s Settings > Deploy keys, or call the GitHub REST API from your script.
3

Connect the repository

Connect the repository through the deploy key. Paradime clones it, checks that it has a dbt_project.yml, and syncs production in a job. Wait for the job, then check that the repository is CONNECTED. If the job fails, check that the deploy key has write access.
If your dbt™ project is in a folder of the repository, pass dbt_project_dir. To use the Paradime GitHub App or a GitLab connection instead, see Connect a repository.
4

Set the branches

Set the branch that Paradime treats as the default, and the branch that Bolt schedules deploy from. Leave out a setting to keep its value.
5

Find the environments and add a staging environment

Read the slugs of the default Bolt and agent environments. In a workspace created through the API, these slugs are generated, so don’t assume production. Then add any other Bolt environment you need. With a slug, the create is safe to retry.
6

Set the shared Code IDE connection

Set the part of the development connection that every user shares, such as the Snowflake account and the authentication method. Each user adds their own credentials and schema when they first open the Code IDE. The API refuses per-user fields such as username or role.
7

Add a warehouse connection to each Bolt environment

Add the connection that Bolt runs use, once for each Bolt environment. Paradime tests each connection before it saves it. A connection the warehouse refuses raises a CONNECTION_TEST_FAILED error, and nothing is saved.
8

Set environment variables

Set the workspace’s variables, and the variables of each environment. Each call sets the variables in one write. Values are write-only: reads return only names.
9

Connect the agent environment (optional)

DinoAI agents query the warehouse through the default agent environment’s connection. It defers to the default Bolt environment.
10

Deploy or create Bolt schedules

If your repository defines schedules in YAML, deploy them from the deploy branch. The deploy runs as a job, and its result says why each schedule that was not deployed failed. If the repository has no YAML schedules, create a schedule through the API instead. The CLI can create schedules, but it can’t deploy YAML schedules.
11

Route alerts

Turn on alert emails to the workspace’s admins. Slack is connected once for the company, by a company admin in a browser: when it isn’t connected, the API returns the page where they connect it.
Once Slack is connected, route alerts to channels with slack_channel_ids. See Notifications.
12

Invite your team

Invite the workspace’s first admin, then the rest of the team. Each person gets an invitation email. Inviting an email that is already a user or already invited raises a CONFLICT error.
13

Start the first Bolt run

Run a schedule once and wait for it to finish. A successful run also leaves the production artifacts that deferral uses.
14

Check the setup status

Read the workspace’s onboarding checklist. Every required step should be DONE. A PENDING_USER_ACTION step waits for a person in a browser, such as connecting Slack, and comes with the page where they finish it.
The setup status reads isComplete: true, and the Bolt run from step 13 ends in SUCCESS. Rows that stay PENDING_USER_ACTION are browser steps for a person, such as connecting Slack or the Paradime GitHub App. If a SCHEDULER_CONNECTION row is MISSING, check step 7 for that environment. If GIT_REPOSITORY is missing, check that the deploy key from step 2 has write access.
Every step is safe to run again: a create with the same input returns the stored object. A create that finds an object with other settings returns a CONFLICT error. Change that object with the matching update call.

Next steps

Invite and manage users

Assign roles and manage your team after the invitations go out.

Admin client reference

Every method of paradime.admin, with errors, pagination and jobs.

Admin CLI reference

Every paradime admin command and option.

Administration API

The GraphQL operations, capability groups and error codes.