Projects

Create, read, update, and delete projects in your organization.

Overview

Projects are isolated workspaces for your datasets, prompts, traces, and evaluations. With the Admin SDK you can create, update, and delete projects programmatically. This supports project-per-agent, project-per-environment, and project-per-customer organization models.

All methods on this page require an Organization API Key. See the Quickstart to create a client.

List Projects

You can list every project in your organization.

1from confidentai import ConfidentAI
2
3client = ConfidentAI()
4
5projects = client.projects.list()
6for project in projects:
7 print(project.id, project.name)

Create a Project

You can create a new project with just a name, while the description is optional. Creating a project also generates its first project API key, so the call returns both the project and that api_key (whose full secret is only available here).

1created = client.projects.create(
2 name="Customer Support Bot",
3 description="Production support assistant",
4)
5print(created.project.id) # e.g. "clq9z3x1k0001la08f7t3g5p2"
6print(created.api_key.value) # e.g. "confident_us_proj_...", shown only once

Get a Project

You can retrieve a single project by its project_id.

1project = client.project("clq9z3x1k0001la08f7t3g5p2")
2project.get()

Update a Project

You can update a project’s name, description, or both, and only the fields you pass are changed.

1project = client.project("clq9z3x1k0001la08f7t3g5p2")
2project.update(name="Support Bot (v2)")

Delete a Project

You can permanently delete a project from your organization.

Deleting a project permanently removes all of its datasets, prompts, traces, and evaluations. This cannot be undone.

1project = client.project("clq9z3x1k0001la08f7t3g5p2")
2project.delete()

Next Steps

After projects are configured, manage access and keys: