Skip to content

Gets all projects for the given organization

get/v1/organizations/{slug}/projects

Returns a paginated list of projects for the specified organization.

This endpoint uses offset-based pagination. Use the offset parameter to skip a number of projects and the limit parameter 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

  • slug
    Required
    string

    Organization slug

Query parameters

  • offset
    Optional
    integer

    Number of projects to skip

  • limit
    Optional
    integer

    Number of projects to return per page

  • search
    Optional
    string

    Search projects by name

  • sort
    Optional
    enum

    Sort order for projects

  • statuses
    Optional
    string

    A comma-separated list of project statuses to filter by.

    The following values are supported: ACTIVE_HEALTHY, INACTIVE.

Response codes

  • 200
  • 401
  • 403
  • 429
  • 500

Response (200)

{
"projects": [
{
"ref": "lorem",
"name": "lorem",
"cloud_provider": "lorem",
"region": "lorem",
"is_branch": true,
"status": "INACTIVE",
"inserted_at": "lorem",
"databases": [
{
"infra_compute_size": "pico",
"region": "lorem",
"status": "ACTIVE_HEALTHY",
"cloud_provider": "lorem",
"identifier": "lorem",
"type": "PRIMARY",
"disk_volume_size_gb": 42,
"disk_type": "gp3",
"disk_throughput_mbps": 42,
"disk_last_modified_at": "lorem"
}
]
}
],
"pagination": {
"count": 42,
"limit": 42,
"offset": 42
}
}
{
"type": "object",
"properties": {
"projects": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ref": {
"type": "string"
},
"name": {
"type": "string"
},
"cloud_provider": {
"type": "string"
},
"region": {
"type": "string"
},
"is_branch": {
"type": "boolean"
},
"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"
]
},
"inserted_at": {
"type": "string"
},
"databases": {
"type": "array",
"items": {
"type": "object",
"properties": {
"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"
]
},
"region": {
"type": "string"
},
"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"
]
},
"cloud_provider": {
"type": "string"
},
"identifier": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"PRIMARY",
"READ_REPLICA"
]
},
"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": [
"region",
"status",
"cloud_provider",
"identifier",
"type"
]
}
}
},
"required": [
"ref",
"name",
"cloud_provider",
"region",
"is_branch",
"status",
"inserted_at",
"databases"
]
}
},
"pagination": {
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of projects. Use this to calculate the total number of pages."
},
"limit": {
"type": "number",
"description": "Maximum number of projects per page"
},
"offset": {
"type": "number",
"description": "Number of projects skipped in this response"
}
},
"required": [
"count",
"limit",
"offset"
]
}
},
"required": [
"projects",
"pagination"
]
}