# Read a page of an installation's repositories

> Page: https://docs.plotwork.dev/api/post-orgs-org-github-installations-id-sync. Index of every page: https://docs.plotwork.dev/llms.txt

Reads one page of 100 repositories the installation can reach: ids, names, the default branch, private or not.

`POST /orgs/{org}/github/installations/{id}/sync`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Read a page of an installation's repositories. |
| What does it take? | A JSON body of type [`GithubSyncBody`](https://docs.plotwork.dev/api/schemas.md#githubsyncbody). |
| What does it return? | Status 200 with a body of type [`GithubSync`](https://docs.plotwork.dev/api/schemas.md#githubsync). |
| What can go wrong? | `400` the body is not valid; `401` not signed in; `403` a member may not (orgs.forbidden), the plan has no GitHub App (plan.github_app_not_included), or the request came from an origin that may not make changes; `404` no such organisation or linked installation (github.installation_not_found); `429` too many requests, or GitHub asked to wait (github.rate_limited); `502` GitHub could not be reached (github.unavailable); `503` the GitHub App is not set up on this server (github.not_configured), or organisations are not. Every failure uses the one error envelope. |

## What it does

Reads one page of 100 repositories the installation can reach: ids, names, the default branch, private or not. nextPage is the next page to ask for. The owner and an admin, on Pro and Enterprise.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `org` | `string` | yes | The organisation's id or its slug. |
| `id` | `string` | yes | GitHub's id. |

## Request body

The body has the type [`GithubSyncBody`](https://docs.plotwork.dev/api/schemas.md#githubsyncbody).

| Field | Type | Required | Description |
|---|---|---|---|
| `page` | `integer` | no | minimum 1; maximum 10; default 1. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | The page was read. | [`GithubSync`](https://docs.plotwork.dev/api/schemas.md#githubsync) |
| 400 | The body is not valid. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 403 | A member may not (orgs.forbidden), the plan has no GitHub App (plan.github_app_not_included), or the request came from an origin that may not make changes. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 404 | No such organisation or linked installation (github.installation_not_found). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests, or GitHub asked to wait (github.rate_limited). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 502 | GitHub could not be reached (github.unavailable). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | The GitHub App is not set up on this server (github.not_configured), or organisations are not. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`GithubSync`](https://docs.plotwork.dev/api/schemas.md#githubsync).

| Field | Type | Required | Description |
|---|---|---|---|
| `synced` | `integer` | yes |  |
| `nextPage` | `integer \| null` | yes |  |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
