GET/user/migrations

List migrations for the authenticated user

Lists migrations started by the authenticated user, including their state and repository details when available. Use page and per_page to paginate the results; per_page defaults to 30 and is capped at 100.

2 parameters
per_pageintegeroptional
Number of results per page. Defaults to 30 when omitted and accepts a maximum of 100.
Default:30
pageintegeroptional
Page number of results to retrieve. Defaults to 1 when omitted.
Default:1

4 status codes
200Returns an array of migration objects with migration identifiers, state, repository details, 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"`.
304Returned when the response has not changed since the previous request.
401Returned when the request does not include valid authentication.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Returned when access to the migration list is forbidden.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 401 is returned when authentication is missing or invalid. A 403 is returned when access is forbidden; the per_page query parameter accepts at most 100.