Skip to main content
POST
Idempotently create the first runtime API key

Authorizations

Authorization
string
header
required

Supabase Auth access token passed as Bearer token

Response

Default key already existed

created
boolean
required

True only when this request created and returned a new plaintext key.

id
string<uuid>
required
prefix
string
required

Stored display prefix for identifying the key.

Example:

"ns_live_a1b2"

key
string | null

Plaintext default key returned exactly once when created is true.

Example:

"ns_live_a1b2c3d4e5f67890a1b2c3d4e5f67890"

name
string | null
scope
string | null

Default runtime-key scope label.

expires_at
string<date-time> | null