Admin SDK Quickstart

Install the Admin SDK and make your first management call.

Overview

The Admin SDK lets you manage organizations, projects, members, roles, and API keys programmatically. It is available for both Python and TypeScript through the confidentai SDK.

This quickstart shows how to install the SDK, configure an Organization API Key, create a client, and list projects in your organization.

Get Started

1

Install the SDK

$pip install confidentai
2

Set your Organization API Key

The ConfidentAI client requires an Organization API Key, which is separate from the project keys used for tracing and evaluations. Retrieve yours before configuring the client.

The client reads the CONFIDENT_ORG_API_KEY environment variable by default. This is separate from the CONFIDENT_API_KEY used for tracing and evaluations, so you can configure both at once.

$export CONFIDENT_ORG_API_KEY="confident_us_org_..."
3

Create a client

1from confidentai import ConfidentAI
2
3client = ConfidentAI()

You can also pass the key explicitly instead of relying on the environment variable. This is useful when managing multiple organizations from the same process.

1client = ConfidentAI(api_key="confident_us_org_...")
4

Make your first call

List the projects in your organization to verify that the client is configured correctly.

1# List the projects in your organization
2for project in client.projects.list():
3 print(project.id, project.name)

Done ✅. The Admin SDK client is configured and can make management requests.

Next Steps

Review the resource references for common management operations: