# org.tangled.repo.getImportStatus

> How far the knot got importing a repository from its source. Only the repository owner and knot admins see the real reason; everyone else gets a generic one.

- Kind: query
- Authority: repo.tangled.org
- Lexicon: 1
- Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.repo.getImportStatus)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.repo.getImportStatus/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.repo.getImportStatus/analytics)

## Query (`org.tangled.repo.getImportStatus`)

Type: query · GET

### Parameters (query string)

- `repo` (string · did, required): DID of the repository

### Output (application/json)

- `reason` (string): Why a partial or failed import ended that way
- `status` (string): Where the import from the source is. Omitted when the repository wasn't created from a source.
  - Constraints: knownValues: fetching | present | partial | failed

### Errors

- `RepoNotFound`: Repo is not registered on this knot
- `InvalidRequest`: Invalid request parameters

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "How far the knot got importing a repository from its source. Only the repository owner and knot admins see the real reason; everyone else gets a generic one.",
      "errors": [
        {
          "description": "Repo is not registered on this knot",
          "name": "RepoNotFound"
        },
        {
          "description": "Invalid request parameters",
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "reason": {
              "description": "Why a partial or failed import ended that way",
              "type": "string"
            },
            "status": {
              "description": "Where the import from the source is. Omitted when the repository wasn't created from a source.",
              "knownValues": [
                "fetching",
                "present",
                "partial",
                "failed"
              ],
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "repo": {
            "description": "DID of the repository",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "repo"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "org.tangled.repo.getImportStatus",
  "lexicon": 1
}
```
