List Projects
client.projects.list(ProjectListParams { name, organization_id, page_size, page_token } query?, RequestOptionsoptions?): PaginatedCursor<Project { id, name, organization_id, 3 more } >
GET/api/v2/projects
List projects in an organization. Requires organization_id or a project-scoped API key.
List Projects
import LlamaCloudAdmin from '@llamaindex/llama-cloud-admin';
const client = new LlamaCloudAdmin({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const project of client.projects.list()) {
console.log(project.id);
}{
"items": [
{
"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"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}Returns Examples
{
"items": [
{
"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"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}