Skip to main content
POST
Create Api Key Via Edge Function

Body

application/json

Request to create a new API key

name
string
required

Human-readable key name (e.g., Production Key)

project_id
string | null

Optional project to associate with

Response

Successful Response

Response for API key creation

api_key
string
required

Full API key - show once and never again!

key_id
string
required
name
string
required
public_prefix
string
required

Safe to display prefix

created_at
string<date-time>
required
warning
string
default:Store this key securely. It won't be shown again!