Returns HTTP 200 even on partial success; hashes that could not be migrated are listed under data.failed.
Required Permissions Your root key must have one of the following permissions for basic key information:
api.*.create_key (to migrate keys to any API)api.<api_id>.create_key (to migrate keys to a specific API)Unkey uses API keys (root keys) for authentication. These keys authorize access to management operations in the API. To authenticate, include your root key in the Authorization header of each request:
Authorization: Bearer unkey_123Root keys have specific permissions attached to them, controlling what operations they can perform. Key permissions follow a hierarchical structure with patterns like resource.resource_id.action (e.g., apis.*.create_key, apis.*.read_api).
Security best practices:
Identifier of the configured migration provider/strategy to use (e.g., "your_company"). You will receive this from Unkey's support staff.
3 - 255"your_company"
The ID of the API that the keys should be inserted into
3 - 255"api_123456789"
1Successfully migrated keys.