POST
/
keys
/
{id}
/
regenerate
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

Headers

x-api-key
string

your workspace API key

Path Parameters

id
string
required

your key ID

Response

200
application/json

OK

The response is of type object.