# zone.stratos.sync.getRepo

> Published by [lexicon.northsky.app](https://lexicon.garden/identity/did:plc:6uxgo3ypovauub7nblwylqyv)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.sync.getRepo)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.sync.getRepo/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.sync.getRepo/examples)

## Definitions

### `zone.stratos.sync.getRepo`

**Type**: `query`

Export the full repository as a CAR file. Returns all record blocks, MST nodes, and the signed commit.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | The DID of the repo to export. |
| `since` | `string` (tid) | No | Optional revision cursor. If provided, only blocks newer than this revision are included. |

#### Output

**Encoding**: `application/vnd.ipld.car`

#### Errors

- **RepoNotFound**: The requested repo does not exist or has no commits.

## Raw Schema

```json
{
  "id": "zone.stratos.sync.getRepo",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "RepoNotFound",
          "description": "The requested repo does not exist or has no commits."
        }
      ],
      "output": {
        "encoding": "application/vnd.ipld.car"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did",
            "description": "The DID of the repo to export."
          },
          "since": {
            "type": "string",
            "format": "tid",
            "description": "Optional revision cursor. If provided, only blocks newer than this revision are included."
          }
        }
      },
      "description": "Export the full repository as a CAR file. Returns all record blocks, MST nodes, and the signed commit."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
