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
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"
}