Skip to content
Product Docs

Create Project

projects.create(ProjectCreateParams**kwargs) -> Project
POST/api/v2/projects

Create a new project in the given organization.

ParametersExpand Collapse
organization_id: str
name: str

The project’s display name.

maxLength3000
minLength1
ReturnsExpand Collapse
class Project:

API response schema for a project.

id: str

The project’s unique identifier.

name: str

The project’s display name.

organization_id: str

The organization the project belongs to.

created_at: Optional[datetime]

Creation datetime

formatdate-time
is_default: Optional[bool]

Whether this project is the default project for its organization.

updated_at: Optional[datetime]

Update datetime

formatdate-time

Create Project

import os
from llama_cloud_admin import LlamaCloudAdmin

client = LlamaCloudAdmin(
    api_key=os.environ.get("LLAMA_CLOUD_API_KEY"),  # This is the default and can be omitted
)
project = client.projects.create(
    organization_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    name="x",
)
print(project.id)
{
  "id": "id",
  "name": "name",
  "organization_id": "organization_id",
  "created_at": "2019-12-27T18:11:19.117Z",
  "is_default": true,
  "updated_at": "2019-12-27T18:11:19.117Z"
}
Returns Examples
{
  "id": "id",
  "name": "name",
  "organization_id": "organization_id",
  "created_at": "2019-12-27T18:11:19.117Z",
  "is_default": true,
  "updated_at": "2019-12-27T18:11:19.117Z"
}