---
title: "Check if a git repo could be imported to Diversion"
method: POST
path: "/repos/import/check"
tags: ["Repository Manipulation"]
---

# Check if a git repo could be imported to Diversion

`POST /repos/import/check`

The git repo URL must have http credentials embedded or otherwise hosted on Github and the owner has the Diversion Github app integration set up.

## Request body

- GitRepoImport — Details of a git repo to import into Diversion
  - `git_url` string — URL to the git repo. May be omitted if repo_id already has it set.

## Response `204`

Git repo can be imported.

## Other responses

- `422` — An error occurred
- `default` — An error occurred

---

[API](https://skmtc.net/diversion/apis/diversion-core-api.md) · [All operations](https://skmtc.net/diversion/apis/diversion-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/diversion/diversion-core-api/versions/38a18aba804b/schema)
