Skip to content
Product Docs

Get Project

Project projects().get(ProjectGetParamsparams = ProjectGetParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v2/projects/{project_id}

Get a project by ID.

ParametersExpand Collapse
ProjectGetParams params
Optional<String> projectId
Optional<String> organizationId
ReturnsExpand Collapse
class Project:

API response schema for a project.

String id

The project’s unique identifier.

String name

The project’s display name.

String organizationId

The organization the project belongs to.

Optional<LocalDateTime> createdAt

Creation datetime

formatdate-time
Optional<Boolean> isDefault

Whether this project is the default project for its organization.

Optional<LocalDateTime> updatedAt

Update datetime

formatdate-time

Get Project

package ai.llamaindex.llamacloudadmin.example;

import ai.llamaindex.llamacloudadmin.client.LlamaCloudAdminClient;
import ai.llamaindex.llamacloudadmin.client.okhttp.LlamaCloudAdminOkHttpClient;
import ai.llamaindex.llamacloudadmin.models.projects.Project;
import ai.llamaindex.llamacloudadmin.models.projects.ProjectGetParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudAdminClient client = LlamaCloudAdminOkHttpClient.fromEnv();

        Project project = client.projects().get("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e");
    }
}
{
  "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"
}