> ## Documentation Index
> Fetch the complete documentation index at: https://unkey.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# migration_not_found

> The requested key migration was not found in Unkey. Verify the migration ID is correct and the migration exists within your current workspace.

<Danger>err:unkey:data:migration\_not\_found</Danger>

```json Example theme={"theme":"kanagawa-wave"}
{
  "meta": {
    "requestId": "req_2c9a0jf23l4k567"
  },
  "error": {
    "detail": "The requested Migration could not be found",
    "status": 404,
    "title": "Not Found",
    "type": "https://unkey.com/docs/errors/unkey/data/migration_not_found"
  }
}
```

## What Happened?

This error occurs when you're trying to migrate API keys for a migration that doesn't exist in the Unkey system.

Common scenarios that trigger this error:

* Using an incorrect or expired migrationId
* The migration was deleted
* The migration belongs to a different workspace
* Typos in the migrationId

Here's an example of a request that would trigger this error:

```bash theme={"theme":"kanagawa-wave"}
# Attempting to migrate keys with a non-existent migrationId
curl -X POST https://api.unkey.com/v2/keys.migrateKeys \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <UNKEY_ROOT_KEY>" \
  -d '{
    "apiId": "api_123",
    "migrationId": "migration_456",
    "keys": [{ "hash": "deadbeef" }]
  }'
```

## How To Fix

<Info>
  If you're unsure about your migrationId or setup, contact [support@unkey.com](mailto:support@unkey.com).
</Info>
