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

# mesa.repos.list_upstream_syncs()

> List syncs for a repository's upstream.

List syncs for one repository's upstream, newest first.

```python theme={null}
result = await mesa.repos.list_upstream_syncs(repo="app", limit=20)

for sync in result.syncs:
    print(sync.direction, sync.status, sync.created_at)
```

## Options

**repo** `str` *required*

Repository name.

**cursor** `str | None`

Opaque pagination cursor from a previous response.

**limit** `int | None`

Maximum number of syncs to return. The server maximum is `100`.

## Response

**next\_cursor** `str | None`

Cursor for the next page, or `None` when no more results remain.

**has\_more** `bool`

Whether another page is available.

**syncs** `list`

Sync objects with `id`, `repo_id`, `direction`, `status`, `attempt`, `stats`, `error`, `created_at`, `started_at`, and `finished_at`.

## Required scope

`read`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.