Skip to content
FeedbackDashboard

List projects

ProjectListPage projects().list(ProjectListParamsparams = ProjectListParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
get/v0/projects

List projects in an organization, from oldest to newest.

ParametersExpand Collapse
ProjectListParams params
Optional<String> cursor

Pagination cursor from a previous response

Optional<Double> limit

Maximum number of projects to return, defaults to 10 (maximum: 100).

exclusiveMinimum0
maximum100
Optional<String> org
ReturnsExpand Collapse
class Project:

A project is a collection of SDKs generated from the same set of config files.

String configRepo
Optional<String> displayName
Object object_
String org
String slug
List<Target> targets
Accepts one of the following:
NODE("node")
TYPESCRIPT("typescript")
PYTHON("python")
GO("go")
JAVA("java")
KOTLIN("kotlin")
RUBY("ruby")
TERRAFORM("terraform")
CLI("cli")
PHP("php")
CSHARP("csharp")
OPENAPI("openapi")
List projects
package com.configure_me_stainless_v0.api.example;

import com.configure_me_stainless_v0.api.client.StainlessClient;
import com.configure_me_stainless_v0.api.client.okhttp.StainlessOkHttpClient;
import com.configure_me_stainless_v0.api.models.projects.ProjectListPage;
import com.configure_me_stainless_v0.api.models.projects.ProjectListParams;

public final class Main {
    private Main() {}

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

        ProjectListPage page = client.projects().list();
    }
}
{
  "data": [
    {
      "config_repo": "config_repo",
      "display_name": "display_name",
      "object": "project",
      "org": "org",
      "slug": "slug",
      "targets": [
        "node"
      ]
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor"
}
Returns Examples
{
  "data": [
    {
      "config_repo": "config_repo",
      "display_name": "display_name",
      "object": "project",
      "org": "org",
      "slug": "slug",
      "targets": [
        "node"
      ]
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor"
}