For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Trust CenterStatusSupportGet a demoPlatform
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingGuidesChangelog
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingGuidesChangelog
    • Platform Settings
    • Data Residency
    • RBAC
  • Project Settings
    • API Keys
    • Team Members
    • Roles & Permissions
    • Transformers
    • Integrations
    • Alerts
    • AI Connections
    • Model Costs
    • Data Usage
    • Evaluation Models
    • Evaluation Rules
    • Annotation Options
    • Classifiers
    • Data Sources
    • Data Retention
    • Audit Logs
  • Organization Settings
    • Projects
    • Users
    • Roles & Permissions
    • Model Credentials
    • SSO
    • Data Retention
    • Audit Logs
    • Feature Access
  • Admin SDK
    • Introduction
    • Quickstart
    • Organization
    • Projects
    • Members & Invitations
    • Roles, Policies & Permissions
    • API Keys
LogoLogo
Trust CenterStatusSupportGet a demoPlatform
On this page
  • Overview
  • Get Started
  • Next Steps
Admin SDK

Admin SDK Quickstart

Install the Admin SDK and make your first management call.
Was this page helpful?
Previous

Organization

Read and rename the organization tied to your API key.
Next
Built with

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

Python
TypeScript
$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

Python
TypeScript
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.

Python
TypeScript
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.

Python
TypeScript
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:

Projects

Create, update, and delete projects.

Members & Invitations

Manage organization and project membership.

Roles, Policies & Permissions

Manage roles, policies, and permissions.

API Keys

Automate key provisioning and rotation.