# com.atproto.sync.getRepo

> Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS.

- Kind: query
- Authority: sync.atproto.com
- Lexicon: 1
- Published by [atproto-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:6msi3pj7krzih5qxqtryxlzw), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.sync.getRepo)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.sync.getRepo/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.sync.getRepo/analytics)

## Query (`com.atproto.sync.getRepo`)

Type: query · GET

### Parameters (query string)

- `did` (string · did, required): The DID of the repo.
- `since` (string · tid): The revision ('rev') of the repo to create a diff from.

### Output (application/vnd.ipld.car)


### Errors

- `RepoNotFound`: No description in schema.
- `RepoTakendown`: No description in schema.
- `RepoSuspended`: No description in schema.
- `RepoDeactivated`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS.",
      "errors": [
        {
          "name": "RepoNotFound"
        },
        {
          "name": "RepoTakendown"
        },
        {
          "name": "RepoSuspended"
        },
        {
          "name": "RepoDeactivated"
        }
      ],
      "output": {
        "encoding": "application/vnd.ipld.car"
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "The DID of the repo.",
            "format": "did",
            "type": "string"
          },
          "since": {
            "description": "The revision ('rev') of the repo to create a diff from.",
            "format": "tid",
            "type": "string"
          }
        },
        "required": [
          "did"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.atproto.sync.getRepo",
  "lexicon": 1
}
```
