> ## 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.

# repos.get_upstream_sync()

> Get one sync for a repository's configured upstream.

Fetch a sync by id through the repository's upstream.

**Required scope: `write`**

```python theme={null}
sync = await mesa.repos.get_upstream_sync(repo="app", sync_id="sync_...")
print(sync.id, sync.status)
```

## Options

**repo** `str` *required*

Repository name.

**sync\_id** `str` *required*

Sync ID.

## Response

Returns a sync object.

**id** `str`

Sync ID.

**repo\_id** `str`

Repository ID.

**direction** `'pull' | 'push'`

Sync direction.

**status** `'queued' | 'in_progress' | 'completed' | 'failed'`

Current sync status.

**attempt** `int`

Attempt number for this run.

`read`


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