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

# Admin client: integrations

> Test, save, list and disconnect BI, ETL and observability integrations, DinoAI agent integrations and secret managers with paradime.admin.integrations.

`paradime.admin.integrations` manages three kinds of connections of a workspace:

* **Credential integrations**: BI tools such as Looker, Tableau and Power BI, ETL tools such as Fivetran and Airbyte, and observability tools such as Datadog and PagerDuty.
* **DinoAI agent integrations**, such as Notion, Jira and Google Drive. A person connects these in a browser.
* **External secret managers** (AWS, Azure and GCP), which connection secrets and environment variables can reference.

Secrets are write-only. For the GraphQL operations, see [Integrations](https://docs.paradime.io/developers/graphql-api/admin-api/integrations).

> [!NOTE]
>
> **Prerequisites**
>
> * These operations are part of the Enterprise plan. On other plans, they raise `AdminPlanUpgradeRequiredException`.
> * For credential integrations and DinoAI agent integrations, your API key needs the **Integrations admin** capability group.
> * For external secret managers, your API key needs the **External secret managers admin** capability group, and the company needs external secret managers turned on.
> * The admin client of the `paradime-io` package. See [Admin client](https://docs.paradime.io/developers/python-sdk/modules/admin/index).

The examples on this page use this client:

```python theme={"system"}
from paradime import Paradime

paradime = Paradime(api_endpoint="API_ENDPOINT", api_secret="prdm_cmp_...", workspace_uid="WORKSPACE_UID")
```

## Credential integrations

### List integrations

Iterates over the workspace's credential integrations, connected or not. Secrets show only as set or not set.

**workspace\_uid** `Optional[str]` (default: None)

The workspace to read, for a company API key.

**page\_size** `int` (default: 100)

How many integrations to read per request, at most 500.

**Returns** `Iterator[WorkspaceIntegration]`

The integrations, read one page at a time.

```python theme={"system"}
for integration in paradime.admin.integrations.list():
    print(integration.name, integration.status, integration.settings)
```

### Set an integration

Tests the credentials, then saves them, and starts what connecting starts in the settings page, such as the first import. Credentials that the tool refuses raise `AdminConnectionTestFailedException`, and nothing is saved. Sending the same credentials again tests them and saves nothing new. A secret you leave out keeps the saved value, unless an endpoint setting such as the host changes.

**config** `IntegrationConfig` *required*

One integration's settings, such as `MetabaseIntegrationInput`, or an `IntegrationConfigInput` with one integration set. See [Integration inputs](#integration-inputs).

**workspace\_uid** `Optional[str]` (default: None)

The workspace to change, for a company API key.

**Returns** `WorkspaceIntegration`

The integration.

```python theme={"system"}
import os

from paradime.apis.admin.integrations.types import MetabaseIntegrationInput

integration = paradime.admin.integrations.set(
    MetabaseIntegrationInput(host="metabase.acme.com", api_key=os.environ["METABASE_API_KEY"])
)
print(integration.status)
```

### Test an integration

Checks that the tool accepts the credentials, and saves nothing. Refused credentials raise `AdminConnectionTestFailedException`.

**config** `IntegrationConfig` *required*

One integration's settings. See [Integration inputs](#integration-inputs).

**workspace\_uid** `Optional[str]` (default: None)

The workspace to use, for a company API key.

**Returns** `IntegrationTestResult`

The integration (`name`) and when the test ran (`tested_at`).

```python theme={"system"}
import os

from paradime.apis.admin.integrations.types import PagerDutyIntegrationInput, PagerDutyRegion

paradime.admin.integrations.test(
    PagerDutyIntegrationInput(api_region=PagerDutyRegion.US, api_key=os.environ["PAGERDUTY_API_KEY"])
)
```

### Disconnect an integration

Clears an integration's credentials, as the settings page does.

**name** `IntegrationName` *required*

The integration, such as `IntegrationName.METABASE`.

**workspace\_uid** `Optional[str]` (default: None)

The workspace to change, for a company API key.

**Returns** `WorkspaceIntegration`

The integration, now disconnected.

```python theme={"system"}
from paradime.apis.admin.integrations.types import IntegrationName

paradime.admin.integrations.disconnect(IntegrationName.METABASE)
```

### Integration inputs

Import the inputs from `paradime.apis.admin.integrations.types`. A secret is optional in Python because a secret you leave out keeps the saved value. Text fields take strings only, so pass a New Relic account id as `"1234567"`.

| Integration | Input | Settings | Secrets |
| - | - | - | - |
| [Looker](https://docs.paradime.io/integrations/looker.md) | `LookerIntegrationInput` | `base_url`, `client_id` | `client_secret` |
| [Tableau](https://docs.paradime.io/integrations/tableau.md) | `TableauIntegrationInput` | `url`, `pat_name`, `project_ids` | `pat_secret` |
| [Power BI](https://docs.paradime.io/integrations/power-bi.md) | `PowerBiIntegrationInput` | `tenant_id`, `client_id`, `workspace_ids` | `client_secret` |
| [DataHub](https://docs.paradime.io/integrations/datahub.md) | `DataHubIntegrationInput` | `gms_url`, `domain` | `pat_token` |
| [Sigma](https://docs.paradime.io/integrations/sigma.md) | `SigmaIntegrationInput` | `host`, `client_id` | `client_secret` |
| ThoughtSpot | `ThoughtSpotIntegrationInput` | `host`, `username` | `password` |
| [Lightdash](https://docs.paradime.io/integrations/lightdash.md) | `LightdashIntegrationInput` | `instance_url` | `api_token` |
| [Omni](https://docs.paradime.io/integrations/omni.md) | `OmniIntegrationInput` | `host` | `api_key` |
| [Metabase](https://docs.paradime.io/integrations/metabase.md) | `MetabaseIntegrationInput` | `host` | `api_key` |
| [Fivetran](https://docs.paradime.io/integrations/fivetran.md) | `FivetranIntegrationInput` | `api_key` | `api_secret` |
| Airbyte | `AirbyteIntegrationInput` | `client_id` | `client_secret` |
| [Hightouch](https://docs.paradime.io/integrations/hightouch.md) | `HightouchIntegrationInput` | | `api_key` |
| [Datadog](https://docs.paradime.io/integrations/datadog.md) | `DatadogIntegrationInput` | `site` (`US1`, `US3`, `US5`, `EU`, `AP1`, `AP2` or `US1_FED`) | `api_key`, `application_key` |
| [New Relic](https://docs.paradime.io/integrations/new-relic.md) | `NewRelicIntegrationInput` | `account_id` | `api_key` |
| [PagerDuty](https://docs.paradime.io/integrations/pagerduty.md) | `PagerDutyIntegrationInput` | `api_region` (`US` or `EU`) | `api_key` |
| [incident.io](https://docs.paradime.io/integrations/incident.io.md) | `IncidentIoIntegrationInput` | | `api_key` |
| Rootly | `RootlyIntegrationInput` | | `api_key` |

Every setting in the **Settings** column is required, except `project_ids` (Tableau) and `domain` (DataHub). A Datadog site or PagerDuty region that the SDK doesn't know raises a validation error before any request.

## DinoAI agent integrations

DinoAI agents connect tools such as Notion, Jira and Google Drive through integrations that belong to the workspace, not to a user. A person connects each one in a browser. The API can list them, give that person a connect link, and disconnect them.

### List agent integrations

Iterates over the integrations that the workspace's DinoAI agents can connect, connected or not, ordered by name. A `PENDING_USER_ACTION` integration waits for a person to connect it in a browser.

**include\_install\_urls** `bool` (default: False)

Also read `install_url`, a connect link that a person opens to connect a `PENDING_USER_ACTION` integration, and `install_url_expires_at`. Each read makes new links, which work for 30 minutes. Anyone who opens a link can connect an account to the workspace's agents, so share each link only with that person. Reading the links needs the `integration_settings:write` capability, which **Integrations admin** includes. A key without it reads `None` for the links.

**workspace\_uid** `Optional[str]` (default: None)

The workspace to read, for a company API key.

**page\_size** `int` (default: 100)

How many integrations to read per request, at most 500.

**Returns** `Iterator[AgentIntegration]`

The integrations, read one page at a time.

```python theme={"system"}
from paradime.apis.admin.integrations.types import AgentIntegrationStatus

for integration in paradime.admin.integrations.list_agent_integrations(include_install_urls=True):
    if integration.status == AgentIntegrationStatus.PENDING_USER_ACTION and integration.install_url:
        print(f"Connect {integration.display_name}: {integration.install_url}")
```

### Disconnect an agent integration

Disconnects one of the workspace's DinoAI agent integrations and deletes its connection. Disconnecting it again is not an error.

**name** `AgentIntegrationName` *required*

The integration, such as `AgentIntegrationName.NOTION`.

**workspace\_uid** `Optional[str]` (default: None)

The workspace to change, for a company API key.

**Returns** `AgentIntegration`

The integration, now disconnected.

```python theme={"system"}
from paradime.apis.admin.integrations.types import AgentIntegrationName

paradime.admin.integrations.disconnect_agent_integration(AgentIntegrationName.NOTION)
```

`AgentIntegrationName` values: `ASANA`, `AZURE_DEVOPS`, `BITBUCKET`, `BOX`, `CLICKUP`, `DROPBOX`, `FIGJAM`, `GITLAB`, `GOOGLE_DOCS`, `GOOGLE_DRIVE`, `GOOGLE_SHEETS`, `GOOGLE_SLIDES`, `HUBSPOT`, `JIRA_CLOUD`, `JIRA_CLOUD_SERVICE_ACCOUNT`, `JIRA_DATA_CENTER`, `MICROSOFT_TEAMS`, `MIRO`, `NOTION`, `ONEDRIVE`, `SHAREPOINT`, `SLACK`.

## External secret managers

### List secret managers

Iterates over the secret managers that the workspace reads secrets from. Secrets are never returned.

**workspace\_uid** `Optional[str]` (default: None)

The workspace to read, for a company API key.

**page\_size** `int` (default: 100)

How many providers to read per request, at most 500.

**Returns** `Iterator[ExternalSecretsProvider]`

The providers, read one page at a time.

```python theme={"system"}
for provider in paradime.admin.integrations.list_external_secrets_providers():
    print(provider.name, provider.last_validated_at)
```

### Set a secret manager

Saves a secret manager's settings. With `test_reference`, the API first reads that secret reference with the new settings: a failed read raises `AdminConnectionTestFailedException`, and nothing is saved.

**provider** `SecretsProviderConfig` *required*

One provider's settings: `AwsSecretsManagerConfigInput`, `AzureKeyVaultConfigInput` or `GcpSecretManagerConfigInput`, or an `ExternalSecretsProviderConfigInput` with one provider set.

**test\_reference** `Optional[str]` (default: None)

A secret reference of the same provider to read before saving, such as `arn:aws:secretsmanager:eu-west-1:123456789012:secret:dbt`. `last_validated_at` records when this last succeeded. Saving without it clears `last_validated_at`.

**workspace\_uid** `Optional[str]` (default: None)

The workspace to change, for a company API key.

**Returns** `ExternalSecretsProvider`

The provider.

```python theme={"system"}
import os

from paradime.apis.admin.integrations.types import AwsSecretsManagerConfigInput

paradime.admin.integrations.set_external_secrets_provider(
    AwsSecretsManagerConfigInput(
        access_key_id="AKIAIOSFODNN7EXAMPLE",
        secret_access_key=os.environ["AWS_SECRET_ACCESS_KEY"],
        role_arn="arn:aws:iam::123456789012:role/ParadimeSSMAccessRole",
        region="eu-west-1",
    ),
    test_reference="arn:aws:secretsmanager:eu-west-1:123456789012:secret:dbt",
)
```

| Provider | Input | Settings | Secrets |
| - | - | - | - |
| [AWS Secrets Manager](https://docs.paradime.io/integrations/aws-secret-manager.md) | `AwsSecretsManagerConfigInput` | `access_key_id`, `role_arn`, `region` (all required) | `secret_access_key` |
| [Azure Key Vault](https://docs.paradime.io/integrations/azure-key-vault.md) | `AzureKeyVaultConfigInput` | `tenant_id`, `client_id` (required), `default_vault_url` | `client_secret` |
| [GCP Secret Manager](https://docs.paradime.io/integrations/gcp-secret-manager.md) | `GcpSecretManagerConfigInput` | `default_project` | `service_account_json` |

### Test a secret reference

Reads a secret reference with the saved provider settings, and returns no value. A failed read raises `AdminConnectionTestFailedException`.

**reference** `str` *required*

The secret reference.

**workspace\_uid** `Optional[str]` (default: None)

The workspace to use, for a company API key.

**Returns** `ExternalSecretReferenceTestResult`

The provider that resolved the reference (`provider`) and when (`tested_at`).

```python theme={"system"}
result = paradime.admin.integrations.test_external_secret_reference(
    "arn:aws:secretsmanager:eu-west-1:123456789012:secret:dbt"
)
print(result.provider, result.tested_at)
```

### Delete a secret manager

Removes a secret manager's saved settings. References to it stop resolving.

**name** `ExternalSecretsProviderName` *required*

The provider: `AWS`, `AZURE` or `GCP`.

**workspace\_uid** `Optional[str]` (default: None)

The workspace to change, for a company API key.

**Returns** `ExternalSecretsProviderName`

The deleted provider.

```python theme={"system"}
from paradime.apis.admin.integrations.types import ExternalSecretsProviderName

paradime.admin.integrations.delete_external_secrets_provider(ExternalSecretsProviderName.AWS)
```

## Types

Import the models and enums from `paradime.apis.admin.integrations.types`.

**WorkspaceIntegration** `model`

**fields**

**name** `IntegrationName`

The integration, such as `LOOKER` or `METABASE`.

**status** `IntegrationStatus`

`NOT_CONNECTED` (no credentials saved), `CONNECTED`, or `SYNCING` (credentials saved, and the first import is running).

**sync\_progress** `Optional[float]`

How far the first import is, from 0 to 1, while `status` is `SYNCING`.

**updated\_at** `Optional[datetime]`

When the credentials were last saved.

**settings** `Optional[model]`

The saved settings without secrets, as the integration's settings model, such as `LookerSettings`. Secrets show only as `has_<secret>` flags. Fivetran shows its API key as `api_key_hint`. `None` when not connected.

**AgentIntegration** `model`

**fields**

**name** `AgentIntegrationName`

The integration, such as `NOTION`.

**display\_name** `Optional[str]`

The integration's name as Paradime shows it.

**status** `AgentIntegrationStatus`

`CONNECTED`, `PENDING_USER_ACTION` (not connected, or the connection needs authorizing again), `UNAVAILABLE` (Paradime doesn't offer it yet), or `UNKNOWN` (Paradime couldn't read whether it is connected: read it again later).

**reconnect\_required** `Optional[bool]`

Whether the workspace connected it before and the connection needs authorizing again.

**install\_url** `Optional[str]`

The connect link, read only with `include_install_urls=True`.

**install\_url\_expires\_at** `Optional[datetime]`

When `install_url` stops working.

**ExternalSecretsProvider** `model`

**fields**

**name** `ExternalSecretsProviderName`

`AWS`, `AZURE` or `GCP`.

**last\_validated\_at** `Optional[datetime]`

When a `test_reference` was last read with the saved settings. `None` when they were saved without one.

**settings** `Optional[model]`

The saved settings: `AwsSecretsManagerSettings` (`access_key_id_hint`, `role_arn`, `region`, `has_secret_access_key`), `AzureKeyVaultSettings` (`tenant_id`, `client_id`, `default_vault_url`, `has_client_secret`) or `GcpSecretManagerSettings` (`default_project`, `has_service_account_json`).


## Related topics

- [Admin client](https://docs.paradime.io/developers/python-sdk/modules/admin/index.md)
- [Admin client: setup status](https://docs.paradime.io/developers/python-sdk/modules/admin/setup-status.md)
- [Admin CLI](https://docs.paradime.io/developers/paradime-cli/admin-cli.md)
- [Admin client: notifications](https://docs.paradime.io/developers/python-sdk/modules/admin/notifications.md)
- [Admin client: workspaces](https://docs.paradime.io/developers/python-sdk/modules/admin/workspaces.md)


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