Skip to content
FeedbackDashboard

List projects

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

List projects in an organization, from oldest to newest.

ParametersExpand Collapse
params: ProjectListParams
cursor: Optional<String>

Pagination cursor from a previous response

limit: Optional<Double>

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

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

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

configRepo: String
displayName: Optional<String>
object_: Object
org: String
slug: String
targets: List<Target>
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")
SQL("sql")
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

fun main() {
    val client: StainlessClient = StainlessOkHttpClient.fromEnv()

    val page: ProjectListPage = 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"
}