Regenerate a legacy primary/sandbox key
Regenerate a legacy primary/sandbox key — a JWT stored in a User column,
not a Token row — as a real hashed sk-eden custom key.
Nulls the User column, which revokes the old JWT immediately in BOTH
services (edenai-back matches the column in auth.py; aifeatures re-checks
it against the column on every request), and mints a new key returned exactly
once. The new key’s name defaults to “Production”/“Sandbox” (auto-suffixed to
“Production 2” etc. if that name is already taken) and may be overridden in the
body. Session-only and NOT quota-gated — migrating an existing key is never
blocked, even at the custom-key cap. The old key can’t authorize its own
replacement.
Path Parameters
Response
No response body