List GitHub connections of an organization
get
/v2/organizations/{slug}/integrations/github/connectionsReturns a cursor-paginated list of the GitHub connections of the organization's projects.
Use page[after] and page[before] to navigate pages and page[size] to control the page size.
Paging walks the organization projects, so a page holds at most page[size] connections and can hold fewer (or none) when some of its projects are not connected.
Follow links.next until it is null rather than stopping on a short page.
Use filter[project_ref] to narrow the list down to a single project.
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
- filterOptionalobject
Response codes
- 200
- 401
- 403
- 429
Response (200)
{ "data": [ { "type": "github_connection", "id": "7", "attributes": { "inserted_at": "lorem", "updated_at": "lorem", "installation_id": 42, "workdir": "lorem", "supabase_changes_only": true, "branch_limit": 42, "new_branch_per_pr": true, "project": { "id": 42, "ref": "abcdefghijklmnopqrst", "name": "lorem" }, "repository": { "id": 42, "name": "lorem" }, "user": { "id": 42, "username": "lorem", "primary_email": "lorem" } } } ], "links": { "first": "/v2/organizations/my-org/integrations/github/connections?page[size]=10", "prev": "/v2/organizations/my-org/integrations/github/connections?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7", "next": "/v2/organizations/my-org/integrations/github/connections?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4", "last": "/v2/organizations/my-org/integrations/github/connections?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": [ "github_connection" ] }, "id": { "type": "string", "description": "Connection id.", "example": "7" }, "attributes": { "type": "object", "properties": { "inserted_at": { "type": "string", "description": "When the connection was created" }, "updated_at": { "type": "string", "description": "When the connection was last updated" }, "installation_id": { "type": "number", "description": "GitHub App installation id" }, "workdir": { "type": "string", "description": "Directory within the repository the project lives in" }, "supabase_changes_only": { "type": "boolean", "description": "Whether branches are only created for changes under `supabase/`" }, "branch_limit": { "type": "number", "description": "Maximum number of preview branches" }, "new_branch_per_pr": { "type": "boolean", "description": "Whether a preview branch is created for every pull request" }, "project": { "type": "object", "properties": { "id": { "type": "number" }, "ref": { "type": "string", "minLength": 20, "maxLength": 20, "pattern": "^[a-z]+$", "description": "Project ref", "example": "abcdefghijklmnopqrst" }, "name": { "type": "string" } }, "required": [ "id", "ref", "name" ], "description": "The connected Supabase project" }, "repository": { "type": "object", "properties": { "id": { "type": "number" }, "name": { "type": "string" } }, "required": [ "id", "name" ], "description": "The connected GitHub repository" }, "user": { "type": "object", "properties": { "id": { "type": "number" }, "username": { "type": "string" }, "primary_email": { "type": "string", "nullable": true } }, "required": [ "id", "username", "primary_email" ], "description": "The user who created the connection, if still known", "nullable": true } }, "required": [ "inserted_at", "updated_at", "installation_id", "workdir", "supabase_changes_only", "branch_limit", "new_branch_per_pr", "project", "repository", "user" ] } }, "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/integrations/github/connections?page[size]=10", "nullable": true }, "prev": { "type": "string", "description": "URL path to the previous page.", "example": "/v2/organizations/my-org/integrations/github/connections?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/integrations/github/connections?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/integrations/github/connections?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295", "nullable": true } }, "required": [ "prev", "next" ] } }, "required": [ "data", "links" ]}