# garden.engram.exportSpace

> Published by [hailey.at](https://lexicon.garden/identity/did:plc:oisofpd7lj26yvgiivf3lxsi)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.exportSpace)
- [Documentation](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.exportSpace/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.exportSpace/examples)

## Definitions

### `garden.engram.exportSpace`

**Type**: `query`

Download a space's index: a tar of its newest manifest (manifest.json) and its segment files (seg-{id}.seg), in the storage format described in docs/design/storage.md. Another appview can import it with `engram-appview import`. Same authentication as garden.engram.searchMemories.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `space` | `string` | Yes | The space URI. |

#### Output

**Encoding**: `application/x-tar`

#### Errors

- **UnknownSpace**: This service does not index the space.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Download a space's index: a tar of its newest manifest (manifest.json) and its segment files (seg-{id}.seg), in the storage format described in docs/design/storage.md. Another appview can import it with `engram-appview import`. Same authentication as garden.engram.searchMemories.",
      "errors": [
        {
          "description": "This service does not index the space.",
          "name": "UnknownSpace"
        }
      ],
      "output": {
        "encoding": "application/x-tar"
      },
      "parameters": {
        "properties": {
          "space": {
            "description": "The space URI.",
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "garden.engram.exportSpace",
  "lexicon": 1
}
```
