# /repos/{}/{}/import* stops working

Calls to /repos/{id}/{id}/import* on GitHub REST API stopped working on April 12, 2024.

## What to use instead

Import with GitHub Importer (https://github.com/new/import) or one of the alternatives on GitHub Docs' "Programmatically importing repositories" page.

No REST replacement: imports move to the GitHub Importer UI, GitHub Enterprise Importer or a scripted git mirror push.

- API: GitHub REST API (api.github.com)
- Kind: Endpoint removal
- Announced: October 12, 2023
- Takes effect: April 12, 2024
- Calls after that day: fail
- Calls it hits: `/repos/{id}/{id}/import*`
- Source: [Announcement](https://github.blog/changelog/2023-10-12-deprecation-source-imports-rest-api)
- Verified: November 6, 2026, against GitHub REST API's own pages
- Page: https://www.okapi.bot/providers/github-rest-api/breaking-changes/repos-import-stops-working/

## GitHub REST API's words

> From 00:00 UTC on April 12, 2024, these endpoints will return an error.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
