zone.stratos.repo.importRepo

lexicon.northsky.app

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Import a repository from a CAR file. Verifies record CID integrity and re-signs with the destination service key. The caller must be enrolled as the DID in the CAR's commit block.",
      "errors": [
        {
          "description": "The CAR file is malformed, has missing blocks, or contains records with mismatched CIDs.",
          "name": "InvalidCar"
        },
        {
          "description": "The destination already has records for this DID. Import is only supported for empty repos.",
          "name": "RepoAlreadyExists"
        }
      ],
      "input": {
        "encoding": "application/vnd.ipld.car"
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "imported": {
              "description": "Number of records successfully imported.",
              "type": "integer"
            }
          },
          "required": [
            "imported"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "zone.stratos.repo.importRepo",
  "lexicon": 1
}

Validate Record

Validate a record against zone.stratos.repo.importRepo

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:6uxgo3ypovauub7nblwylqyv
CID
bafyreiat4bawamo75jsazkb4jkjwl65q3sspuzvgpobmezx5iyompglpou
Indexed At
2026-03-03 21:29 UTC
AT-URI
at://did:plc:6uxgo3ypovauub7nblwylqyv/com.atproto.lexicon.schema/zone.stratos.repo.importRepo

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.

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

Lexicon Garden

@