Skip to content
FeedbackDashboard

List projects

projects.list(**kwargs) -> Page<Project { config_repo, display_name, object, 3 more } >
GET/v0/projects

List projects in an organization, from oldest to newest.

ParametersExpand Collapse
cursor: String

Pagination cursor from a previous response

limit: Float

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

exclusiveMinimum0
maximum100
org: String
ReturnsExpand Collapse
class Project { config_repo, display_name, object, 3 more }

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

config_repo: String
display_name: String
object: :project
org: String
slug: String
targets: Array[Target]
Accepts one of the following:
:node
:typescript
:python
:go
:java
:kotlin
:ruby
:terraform
:cli
:php
:csharp
:sql
:openapi

List projects

require "stainless_v0"

stainless = StainlessV0::Client.new(
  api_key: "My API Key",
  environment: "staging" # defaults to "production"
)

page = stainless.projects.list

puts(page)
{
  "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"
}