List
List projects in an organization, from oldest to newest
projects.list(ProjectListParams**kwargs) -> SyncPage[config_repostrdisplay_namestrobjectliteralorgstrslugstrtargetslistProject]
get/v0/projects
List projects in an organization, from oldest to newest
Parameters
cursorstr
optional
Pagination cursor from a previous response
limitfloat
optional
Maximum number of projects to return, defaults to 10 (maximum: 100)
exclusiveMinimum0
maximum100
orgstr
optional
Returns
config_repostrdisplay_namestrobjectliteralorgstrslugstrtargetslistProject
from stainless_v0 import Stainless
client = Stainless(
api_key="My API Key",
)
page = client.projects.list()
page = page.data[0]
print(page.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"
}