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.List Workspaces
This endpoint will return details on the current active workspaces in your Paradime Account. Example Request- GraphQL
- cURL
Example response
Example response
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, orGITLAB_APP.connection.installationId,connection.repoId, andconnection.repoFullName: the GitHub App installation and the repository it is pinned to.state:CONNECTED,DEGRADED, orDISCONNECTED.gitUri: the repository URL.hasDeployKey:truewhen 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.