Skip to content
FeedbackDashboard

List projects

$client->projects->list(?string cursor, ?float limit, ?string org): Page<Project>
GET/v0/projects

List projects in an organization, from oldest to newest.

ParametersExpand Collapse
cursor?:optional string

Pagination cursor from a previous response

limit?:optional float

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

org?:optional string
ReturnsExpand Collapse
string configRepo
?string displayName
Object_ object
string org
string slug
list<Target> targets

List projects

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'My API Key', environment: 'staging');

$page = $client->projects->list(cursor: 'cursor', limit: 1, org: 'org');

var_dump($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"
}