Rotate an API key
Dormant during the private-beta key-only e2e. This route returns
feature_unavailable unless NULLSPACE_SELF_SERVE_AUTH_ENABLED=true
is set. When enabled, it mints a replacement key for the authenticated
user and schedules the old key to expire after 24 hours. The replacement
plaintext key is returned exactly once.
Authorizations
Supabase Auth access token passed as Bearer token
Path Parameters
API key ID
Body
Response
Replacement API key created
Plaintext API key returned only at creation time.
"ns_live_a1b2c3d4e5f67890a1b2c3d4e5f67890"
Stored display prefix for identifying the key.
"ns_live_a1b2"
Echo of the advisory scope label provided at creation, if any.
Expiration time when returned from a rotation flow; null for normal keys.