How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Migrations API

The GitHub Migrations API lets you migrate data to and from GitHub. It supports organization migrations that export repositories and metadata as downloadable archives, source imports that convert repositories from Subversion, Mercurial, or TFS to Git, and user migrations for moving personal repositories between accounts or platforms.

GitHub Migrations API is one of 129 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Migrations, Export, and Import. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, an API reference, and 2 JSON Schemas.

This API exposes 22 operations across 15 paths, and defines 22 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: https://api.github.com, {protocol}://{hostname}/api/v3.

22 operations 15 paths 22 schemas 5 DELETE11 GET3 PATCH2 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Contact
License
Terms of Service
Resource Areas
1

Paths & Operations 22

Across 15 paths, the API surfaces 22 operations — 5 DELETE, 11 GET, 3 PATCH, 2 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Migrations 22

Move projects to or from GitHub.

GET
/orgs/{org}/migrations
List organization migrations
migrations/list-for-org 4 params → 200
POST
/orgs/{org}/migrations
Start an organization migration
migrations/start-for-org 1 param body → 201404422
GET
/orgs/{org}/migrations/{migration_id}
Get an organization migration status
migrations/get-status-for-org 3 params → 200404
GET
/orgs/{org}/migrations/{migration_id}/archive
Download an organization migration archive
migrations/download-archive-for-org 2 params → 302404
DELETE
/orgs/{org}/migrations/{migration_id}/archive
Delete an organization migration archive
migrations/delete-archive-for-org 2 params → 204404
DELETE
/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock
Unlock an organization repository
migrations/unlock-repo-for-org 3 params → 204404
GET
/orgs/{org}/migrations/{migration_id}/repositories
List repositories in an organization migration
migrations/list-repos-for-org 4 params → 200404
GET
/repos/{owner}/{repo}/importdeprecated
Get an import status
migrations/get-import-status 2 params → 200404503
PUT
/repos/{owner}/{repo}/importdeprecated
Start an import
migrations/start-import 2 params body → 201422404503
PATCH
/repos/{owner}/{repo}/importdeprecated
Update an import
migrations/update-import 2 params body → 200503
DELETE
/repos/{owner}/{repo}/importdeprecated
Cancel an import
migrations/cancel-import 2 params → 204503
GET
/repos/{owner}/{repo}/import/authorsdeprecated
Get commit authors
migrations/get-commit-authors 3 params → 200404503
PATCH
/repos/{owner}/{repo}/import/authors/{author_id}deprecated
Map a commit author
migrations/map-commit-author 3 params body → 200422404503
GET
/repos/{owner}/{repo}/import/large_filesdeprecated
Get large files
migrations/get-large-files 2 params → 200503
PATCH
/repos/{owner}/{repo}/import/lfsdeprecated
Update Git LFS preference
migrations/set-lfs-preference 2 params body → 200422503
GET
/user/migrations
List user migrations
migrations/list-for-authenticated-user 2 params → 200304403401
POST
/user/migrations
Start a user migration
migrations/start-for-authenticated-user body → 201422304403401
GET
/user/migrations/{migration_id}
Get a user migration status
migrations/get-status-for-authenticated-user 2 params → 200404304403401
GET
/user/migrations/{migration_id}/archive
Download a user migration archive
migrations/get-archive-for-authenticated-user 1 param → 302304403401
DELETE
/user/migrations/{migration_id}/archive
Delete a user migration archive
migrations/delete-archive-for-authenticated-user 1 param → 204404304403401
DELETE
/user/migrations/{migration_id}/repos/{repo_name}/lock
Unlock a user repository
migrations/unlock-repo-for-authenticated-user 2 params → 204304404403401
GET
/user/migrations/{migration_id}/repositories
List repositories for a user migration
migrations/list-repos-for-authenticated-user 3 params → 200404

Schemas 22

The contract defines 22 schemas that model the data the API accepts and returns. The most detailed are repository (98 properties), repository_2 (95 properties), minimal-repository (90 properties), minimal-repository_2 (87 properties). Each schema is shown below with its type and property counts.

security-and-analysis
objectnull
10 properties
import
object
A repository import from an external source.
23 properties 7 required
basic-error
object
Basic Error
4 properties
porter-large-file
object
Porter Large File
4 properties 4 required
validation-error
object
Validation Error
3 properties 2 required
repository
object
A repository on GitHub.
98 properties 73 required
porter-author
object
Porter Author
7 properties 7 required
migration
object
A migration.
18 properties 16 required
minimal-repository
object
Minimal Repository
90 properties 46 required
simple-user
object
A GitHub user.
22 properties 18 required
code-of-conduct
object
Code Of Conduct
5 properties 4 required
license-simple
object
License Simple
6 properties 5 required
security-and-analysis_2
objectnull
3 properties
basic-error_2
object
Basic Error
4 properties
validation-error_2
object
Validation Error
3 properties 2 required
nullable-license-simple
objectnull
License Simple
6 properties 5 required
nullable-simple-user
objectnull
A GitHub user.
21 properties 18 required
migration_2
object
A migration.
18 properties 16 required
minimal-repository_2
object
Minimal Repository
87 properties 46 required
simple-user_2
object
A GitHub user.
21 properties 18 required
code-of-conduct_2
object
Code Of Conduct
5 properties 4 required
repository_2
object
A repository on GitHub.
95 properties 73 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-migrations-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Projects API
GitHub Repos API
GitHub Search API
GitHub User API
GitHub Deployments API
GitHub Releases API
GitHub Pages API
Where this information came from

This is an independent, third-party profile of GitHub Migrations API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.