> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# repos_list_for_authenticated_user

> List repositories the authenticated user can access. Note that passing `type` together with `visibility` or `affiliation` is a 422 from GitHub.

<div className="tool-route"><span className="tool-row-method" data-method="GET">GET</span><code>{"https://api.github.com/user/repos"}</code></div>

```python github_repos_list_for_authenticated_user.py theme={null}
from charter.packs import github

result = await github.repos_list_for_authenticated_user.ainvoke({})
```

<Note>
  Requires `repo`, `read:user`. Pages by number: `page` with `per_page`.
</Note>

## Query parameters

<div className="reference-table">
  | Field         | Type                                                                 | Description                                                                                                                                                                                                        |
  | ------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | `perPage`     | `integer`                                                            | The number of results per page (max 100). Defaults to 30. <span className="field-constraints">≥ 1; ≤ 100; defaults to `30`</span>                                                                                  |
  | `page`        | `integer`                                                            | The page number of the results to fetch. Defaults to 1. <span className="field-constraints">≥ 1; defaults to `1`</span>                                                                                            |
  | `visibility`  | [RepoVisibility](/charter/charter/packs/github/repos/objects#repovisibility) | Limit results to repositories with the specified visibility. GitHub uses `all` when this is omitted. Cannot be combined with `type`.                                                                               |
  | `affiliation` | `string`                                                             | Comma-separated list of values. Must be one or more of: `owner`, `collaborator`, `organization_member`. GitHub uses `owner,collaborator,organization_member` when this is omitted. Cannot be combined with `type`. |
  | `type`        | [RepoType](/charter/charter/packs/github/repos/objects#repotype)             | Limit results to repositories of the specified type. GitHub uses `all` when this is omitted. Cannot be combined with `visibility` or `affiliation` — GitHub answers 422 to a request carrying both.                |
  | `sort`        | [RepoSort](/charter/charter/packs/github/repos/objects#reposort)             | The property to sort the results by. Defaults to `full_name`. <span className="field-constraints">defaults to `"full_name"`</span>                                                                                 |
  | `direction`   | [SortDirection](/charter/charter/packs/github/issues/objects#sortdirection)  | The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`.                                                                                                                                     |
  | `since`       | `string`                                                             | Only show repositories updated after the given time, in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. <span className="field-constraints">format `date-time`</span>                                                     |
  | `before`      | `string`                                                             | Only show repositories updated before the given time, in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. <span className="field-constraints">format `date-time`</span>                                                    |
</div>
