Skip to content
  • Auto
  • Light
  • Dark

List

List projects in an organization, from oldest to newest
client.projects.list(ProjectListParamsquery?, RequestOptionsoptions?): Page<config_repostringdisplay_nameunionobject"project"orgstringslugstringtargetsarrayProject>
get/v0/projects

List projects in an organization, from oldest to newest

Parameters
querycursorstringlimitnumberorgstringProjectListParams
Hide ParametersShow Parameters
cursorstring
optional

Pagination cursor from a previous response

limitnumber
optional

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

exclusiveMinimum0
maximum100
orgstring
optional
Returns
config_repostringdisplay_nameunionobject"project"orgstringslugstringtargetsarrayProject
import Stainless from '@stainless-api/sdk';

const client = new Stainless({
  apiKey: 'My API Key',
});

// Automatically fetches more pages as needed.
for await (const project of client.projects.list()) {
  console.log(project.config_repo);
}
200 Example
{
  "data": [
    {
      "config_repo": "config_repo",
      "display_name": "display_name",
      "object": "project",
      "org": "org",
      "slug": "slug",
      "targets": [
        "node"
      ]
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor"
}