Skip to content
Framework Docs

Get Project

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

Get a project by ID.

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

Schema for a project.

String id

Unique identifier

formatuuid
String name
String organizationId

The Organization ID the project is under.

formatuuid
Optional<LocalDateTime> createdAt

Creation datetime

formatdate-time
Optional<Boolean> isDefault

Whether this project is the default project for the user.

Optional<LocalDateTime> updatedAt

Update datetime

formatdate-time

Get Project

package com.llamacloud_prod.api.example;

import com.llamacloud_prod.api.client.LlamaCloudClient;
import com.llamacloud_prod.api.client.okhttp.LlamaCloudOkHttpClient;
import com.llamacloud_prod.api.models.projects.Project;
import com.llamacloud_prod.api.models.projects.ProjectGetParams;

public final class Main {
    private Main() {}

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

        Project project = client.projects().get("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e");
    }
}
{
  "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "name": "x",
  "organization_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "created_at": "2019-12-27T18:11:19.117Z",
  "is_default": true,
  "updated_at": "2019-12-27T18:11:19.117Z"
}
Returns Examples
{
  "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "name": "x",
  "organization_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "created_at": "2019-12-27T18:11:19.117Z",
  "is_default": true,
  "updated_at": "2019-12-27T18:11:19.117Z"
}