Skip to main content
POST
/
v1
/
admin
/
users
/
{user_id}
/
keys
Mint an operator beta key for a user
import requests

url = "https://api.13-215-85-171.sslip.io/v1/admin/users/{user_id}/keys"

payload = { "name": "<string>" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "key": "<string>",
  "prefix": "ns_live_beta_a1b2c3d4",
  "scope": "operator",
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

Supabase Auth access token passed as Bearer token

Path Parameters

user_id
string<uuid>
required

Self-serve account user ID

Body

application/json
name
string | null

Response

Operator key minted

id
string<uuid>
required
key
string
required

Plaintext operator-minted API key, returned exactly once.

prefix
string
required
Example:

"ns_live_beta_a1b2c3d4"

scope
string
required
Example:

"operator"

name
string | null