Skip to main content

Overview

Prerequisites:
  • This feature is available with the Paradime Enterprise pack.
  • Your API keys must have either User Management Admin or User Metadata Viewer capabilities.
The examples below authenticate with an account API key — pass Authorization: Bearer <token> (the account key starts with prdm_cmp_). This is an account-wide endpoint, so the X-Paradime-Workspace header is not required. Legacy workspace API keys are still supported: send X-API-KEY and X-API-SECRET headers instead. See API Keys.
The Workspace Management API enables you to view workspace metadata for your Paradime accounts.

List Workspaces

This endpoint will return details on the current active workspaces in your Paradime Account. Example Request

Git repository connection

Read and set how a workspace connects to its Git repository: through the GitHub App, through a GitLab connection, or with its SSH deploy key.
  • Your API key needs the Git repository admin capability.
  • These operations act on one workspace, so an account API key must send the X-Paradime-Workspace: <workspace_uid> header.
  • The API uses only installations and connections that your company already holds. An API key has no GitHub account of its own.

Read the connection

gitRepository returns the workspace’s connection:
  • connection.mode: SSH_DEPLOY_KEY, GITHUB_APP, or GITLAB_APP.
  • connection.installationId, connection.repoId, and connection.repoFullName: the GitHub App installation and the repository it is pinned to.
  • state: CONNECTED, DEGRADED, or DISCONNECTED.
  • gitUri: the repository URL.
  • hasDeployKey: true when a deploy key clone exists to fall back to.
  • pendingInstallRequests: GitHub App install requests that wait for an organization owner.

Set the connection

setGitRepository takes a mode and, for some modes, the repository to connect: Pass both arguments of a pair, or neither.