Migrations
Migrate key to Unkey
POST
Add existing keys to unkey by specifying the key hash and other settings.
This endpoint supports bulk inserts of up to 100 keys at a time. If you have more keys, you can call this endpoint multiple times. If any operation fails (e.g., due to a duplicate key), everything will be rolled back and no keys are created.
Changelog
Date | Changes |
---|---|
May 08 2024 | Introduced endpoint |
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json · object[]
The body is of type object[]
.
Response
200
application/json
The key ids of all created keys
The response is of type object
.