Class ProjectsClient

java.lang.Object
com.langfuse.client.resources.projects.ProjectsClient

public class ProjectsClient extends Object
  • Field Details

  • Constructor Details

    • ProjectsClient

      public ProjectsClient(ClientOptions clientOptions)
  • Method Details

    • withRawResponse

      public RawProjectsClient withRawResponse()
      Get responses with HTTP metadata like headers
    • get

      public Projects get()
      Get Project associated with API key (requires project-scoped API key). You can use GET /api/public/organizations/projects to get all projects with an organization-scoped key.
    • get

      public Projects get(RequestOptions requestOptions)
      Get Project associated with API key (requires project-scoped API key). You can use GET /api/public/organizations/projects to get all projects with an organization-scoped key.
    • create

      public Project create(CreateProjectRequest request)
      Create a new project (requires organization-scoped API key)
    • create

      public Project create(CreateProjectRequest request, RequestOptions requestOptions)
      Create a new project (requires organization-scoped API key)
    • update

      public Project update(String projectId, UpdateProjectRequest request)
      Update a project by ID (requires organization-scoped API key).
    • update

      public Project update(String projectId, UpdateProjectRequest request, RequestOptions requestOptions)
      Update a project by ID (requires organization-scoped API key).
    • delete

      public ProjectDeletionResponse delete(String projectId)
      Delete a project by ID (requires organization-scoped API key). Project deletion is processed asynchronously.
    • delete

      public ProjectDeletionResponse delete(String projectId, RequestOptions requestOptions)
      Delete a project by ID (requires organization-scoped API key). Project deletion is processed asynchronously.
    • getApiKeys

      public ApiKeyList getApiKeys(String projectId)
      Get all API keys for a project (requires organization-scoped API key)
    • getApiKeys

      public ApiKeyList getApiKeys(String projectId, RequestOptions requestOptions)
      Get all API keys for a project (requires organization-scoped API key)
    • createApiKey

      public ApiKeyResponse createApiKey(String projectId)
      Create a new API key for a project (requires organization-scoped API key)
    • createApiKey

      public ApiKeyResponse createApiKey(String projectId, RequestOptions requestOptions)
      Create a new API key for a project (requires organization-scoped API key)
    • createApiKey

      public ApiKeyResponse createApiKey(String projectId, CreateApiKeyRequest request)
      Create a new API key for a project (requires organization-scoped API key)
    • createApiKey

      public ApiKeyResponse createApiKey(String projectId, CreateApiKeyRequest request, RequestOptions requestOptions)
      Create a new API key for a project (requires organization-scoped API key)
    • deleteApiKey

      public ApiKeyDeletionResponse deleteApiKey(String projectId, String apiKeyId)
      Delete an API key for a project (requires organization-scoped API key)
    • deleteApiKey

      public ApiKeyDeletionResponse deleteApiKey(String projectId, String apiKeyId, RequestOptions requestOptions)
      Delete an API key for a project (requires organization-scoped API key)