Skip to main content
POST
Mint an API key

Authorizations

Authorization
string
header
required

A Supabase user access token (for app/key management).

Path Parameters

id
string<uuid>
required

Body

application/json
kind
enum<string>
default:publishable
Available options:
publishable,
secret
mode
enum<string>
default:test
Available options:
test,
live
name
string

Response

The minted key (plaintext shown once)

Returned ONCE at creation. The plaintext key is unrecoverable afterward.

id
string<uuid>
key
string

The full plaintext API key. Store it now; it is never shown again.

prefix
string
Example:

"sk_test_"

last4
string
kind
enum<string>
Available options:
publishable,
secret
mode
enum<string>
Available options:
test,
live
scopes
string[]