cURL
curl --request POST \ --url https://api.datkey.dev/keys/{id}/regenerate
{ "key": { "id": "<key_id>", "name": "<key_name>", "key": "flox_sk_05ad2bf*******", "prefix": "flox_sk", "length": 16, "verifications": 0, "verification_limit": null, "expires_at": 1733237153, "meta": null, "created_at": "2023-12-05T11:31:23.000000Z", "updated_at": "2023-12-05T11:31:23.000000Z" } }
This endpoint would regenerate a key while maintaining its initial id and configurations
id
your workspace API key
your key ID
OK
The response is of type object.
object