GET
/user/migrations/{migration_id}Get a user migration status
Retrieves the status and details of a user migration. Use migration_id to identify the migration, and check state to see whether it is pending, exporting, exported, or failed. Once the migration is exported, download its archive using the user migration archive endpoint.
migration_idintegerrequired
The unique identifier of the user migration to retrieve.
excludearray<string>optional
Repository names to exclude from the migration.
200Returns the migration object, including its identifier, owner, GUID, state, migration settings, repositories, and timestamps.
idintegerrequired
ownerobjectrequired
A GitHub user.
guidstringrequired
statestringrequired
lock_repositoriesbooleanrequired
exclude_metadatabooleanrequired
exclude_git_databooleanrequired
exclude_attachmentsbooleanrequired
exclude_releasesbooleanrequired
exclude_owner_projectsbooleanrequired
org_metadata_onlybooleanrequired
repositoriesarray<Repository>required
The repositories included in the migration. Only returned for export migrations.
urlstringrequired
created_atstringrequired
updated_atstringrequired
node_idstringrequired
archive_urlstringoptional
excludearray<string>optional
Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.
304Returns no migration representation when the resource has not changed.
401Returned when authentication is required.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Returned when access to the migration is forbidden.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the migration is not found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 401 is returned when authentication is required but not provided. A 403 is returned when access to the migration is forbidden, and a 404 is returned when the migration is not found. The migration_id path parameter must identify an existing migration.