Create an API key for the authenticated user
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 creates a new API key and returns the
plaintext key exactly once. The server stores only the SHA-256 hash and
later list responses expose only display metadata.
Authorizations
Supabase Auth access token passed as Bearer token
Body
Response
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.