Skip to main content
POST
/
ai
/
save-key
Save AI API Key
curl --request POST \
  --url https://api.d1g.qzz.io/api/v1/ai/save-key \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "apiKey": "AIza..."
}
'
{
  "success": true,
  "data": {
    "message": "API key saved successfully"
  }
}

Authorizations

Authorization
string
header
required

Use JWT token (from Supabase auth) or API key (format: sk_live_...)

Body

application/json
apiKey
string
required
Example:

"AIza..."

Response

200 - application/json

API key saved

success
boolean
Example:

true

data
object