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

> Fetch metadata for one repository.

Fetch a repository by name.

**Required scope: `read`**

```python theme={null}
repo = await mesa.repos.get(repo="app")
print(repo.id)
print(repo.default_bookmark)
```

## Options

**repo** `str` *required*

Repository name.

## Response

**id** `str`

Repository ID.

**org** `str`

Organization slug.

**name** `str`

Repository name.

**default\_bookmark** `str`

Default bookmark name.

**head\_change\_id** `str`

Current change ID at the default bookmark tip.

**upstream** `UpstreamConfig | None`

Configured upstream remote, or null when no upstream is configured.

**created\_at** `datetime`

Creation time.

**tags** `dict[str, str]`

Repository tags.

### UpstreamConfig

**url** `str`

Upstream Git remote URL.

**auth\_kind** `'token' | 'username_password' | None`

Stored upstream authentication kind, or null when the upstream is public.

## Errors

Raises `NotFoundError` when the repository does not exist.


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