List projects of an organization
get
/v2/organizations/{slug}/projectsReturns a cursor-paginated list of projects for the specified organization, including their databases.
Use page[after] and page[before] to navigate pages and page[size] to control the number of projects returned per page.
OAuth scopes
- projects:read
The fine-grained token must include the following permissions to access this endpoint:
- organization_projects_read
Path parameters
- slugRequiredstring
Organization slug
Query parameters
- pageOptionalobject
- sortOptionalenum
Sort order by creation time:
inserted_at(oldest first) or-inserted_at(newest first). Defaults toinserted_at. - searchOptionalstring
Case-insensitive substring match on the project name.
Response codes
- 200
- 401
- 403
- 429
Response (200)
{ "data": [ { "type": "project", "id": "abcdefghijklmnopqrst", "attributes": { "name": "lorem", "status": "INACTIVE", "cloud_provider": "lorem", "region": "lorem", "inserted_at": "lorem", "databases": [ { "cloud_provider": "lorem", "identifier": "lorem", "region": "lorem", "status": "ACTIVE_HEALTHY", "type": "PRIMARY", "infra_compute_size": "pico", "disk_volume_size_gb": 42, "disk_type": "gp3", "disk_throughput_mbps": 42, "disk_last_modified_at": "lorem" } ] } } ], "links": { "first": "/v2/organizations/my-org/projects?page[size]=10", "prev": "/v2/organizations/my-org/projects?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7", "next": "/v2/organizations/my-org/projects?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4", "last": "/v2/organizations/my-org/projects?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295" }}{ "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Resource type.", "enum": [ "project" ] }, "id": { "type": "string", "minLength": 20, "maxLength": 20, "pattern": "^[a-z]+$", "description": "Project ref", "example": "abcdefghijklmnopqrst" }, "attributes": { "type": "object", "properties": { "name": { "type": "string", "description": "Project name" }, "status": { "type": "string", "enum": [ "INACTIVE", "ACTIVE_HEALTHY", "ACTIVE_UNHEALTHY", "COMING_UP", "UNKNOWN", "GOING_DOWN", "INIT_FAILED", "REMOVED", "RESTORING", "UPGRADING", "PAUSING", "RESTORE_FAILED", "RESTARTING", "PAUSE_FAILED", "RESIZING" ], "description": "Project status" }, "cloud_provider": { "type": "string", "description": "Cloud provider hosting the project" }, "region": { "type": "string", "description": "Region the project is hosted in" }, "inserted_at": { "type": "string", "description": "When the project was created" }, "databases": { "type": "array", "items": { "type": "object", "properties": { "cloud_provider": { "type": "string" }, "identifier": { "type": "string" }, "region": { "type": "string", "nullable": true }, "status": { "type": "string", "enum": [ "ACTIVE_HEALTHY", "ACTIVE_UNHEALTHY", "COMING_UP", "GOING_DOWN", "INIT_FAILED", "REMOVED", "RESTORING", "UNKNOWN", "INIT_READ_REPLICA", "INIT_READ_REPLICA_FAILED", "RESTARTING", "RESIZING" ] }, "type": { "type": "string", "enum": [ "PRIMARY", "READ_REPLICA" ] }, "infra_compute_size": { "type": "string", "enum": [ "pico", "nano", "micro", "small", "medium", "large", "xlarge", "2xlarge", "4xlarge", "8xlarge", "12xlarge", "16xlarge", "24xlarge", "24xlarge_optimized_memory", "24xlarge_optimized_cpu", "24xlarge_high_memory", "48xlarge", "48xlarge_optimized_memory", "48xlarge_optimized_cpu", "48xlarge_high_memory" ] }, "disk_volume_size_gb": { "type": "number" }, "disk_type": { "type": "string", "enum": [ "gp3", "io2" ] }, "disk_throughput_mbps": { "type": "number" }, "disk_last_modified_at": { "type": "string" } }, "required": [ "cloud_provider", "identifier", "region", "status", "type" ] }, "description": "The project's databases including compute and disk attributes." } }, "required": [ "name", "status", "cloud_provider", "region", "inserted_at", "databases" ] } }, "required": [ "type", "id", "attributes" ] } }, "links": { "type": "object", "properties": { "first": { "type": "string", "description": "URL path to the first page if available.", "example": "/v2/organizations/my-org/projects?page[size]=10", "nullable": true }, "prev": { "type": "string", "description": "URL path to the previous page.", "example": "/v2/organizations/my-org/projects?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7", "nullable": true }, "next": { "type": "string", "description": "URL path to the next page.", "example": "/v2/organizations/my-org/projects?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4", "nullable": true }, "last": { "type": "string", "description": "URL path to the last page if available.", "example": "/v2/organizations/my-org/projects?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295", "nullable": true } }, "required": [ "prev", "next" ] } }, "required": [ "data", "links" ]}