Skip to content

GET /wpcom/v2/hosting/github/repositories

Get a list of repositories and their external_repository_ids. Note that you will want to authorize GitHub in your WordPress environment before using it.

Resource Information

   
Method GET
URL https://public-api.wordpress.com/wpcom/v2/hosting/github/repositories
Requires authentication? Yes

Method Parameters

Parameter Type Required Description
installation_id number Yes The installation ID of the GitHub App.

Response Example

					
						[
    {
        "default_branch": "main",
        "full_name": "github-owner\/repository-name",
        "id": "external_repository_id",
        "name": "repository-name",
        "owner": "github-owner",
        "private": true,
        "updated_at": "2024-01-31T19:51:38Z"
    }
]					
				

Resource Errors

This endpoint does not return any errors.