> ## 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.listUpstreamSyncs()

> List syncs for a repository's upstream.

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

```ts theme={null}
const { syncs, next_cursor, has_more } = await mesa.repos.listUpstreamSyncs({
  repo: 'app',
  limit: 20,
});

for (const sync of syncs) {
  console.log(sync.direction, sync.status, sync.created_at);
}
```

## Options

**repo** `string` *required*

Repository name.

**cursor** `string | undefined`

Opaque pagination cursor from a previous response.

**limit** `number | undefined`

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

## Response

**next\_cursor** `string | null`

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

**has\_more** `boolean`

Whether another page is available.

**syncs** `array`

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.