Skip to content
FeedbackDashboard

List projects

get/v0/projects

List projects in an organization, from oldest to newest.

Query ParametersExpand Collapse
cursor: optional string

Pagination cursor from a previous response

limit: optional number

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

exclusiveMinimum0
maximum100
org: optional string
ReturnsExpand Collapse
data: array of Project { config_repo, display_name, object, 3 more }
config_repo: string
display_name: string
object: "project"
org: string
slug: string
targets: array of Target
Accepts one of the following:
"node"
"typescript"
"python"
"go"
"java"
"kotlin"
"ruby"
"terraform"
"cli"
"php"
"csharp"
has_more: boolean
next_cursor: optional string
List projects
curl https://api.stainless.com/v0/projects \
    -H "Authorization: Bearer $STAINLESS_API_KEY"
{
  "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"
}