curl -X POST "https://api.unleeshed.ai/partner/v1/api-keys" \ -H "Authorization: Bearer YOUR_SUPABASE_JWT" \ -H "Content-Type: application/json" \ -d '{ "name": "Production Server", "scopes": ["topics:submit", "topics:read", "personas:read"] }'
{ "success": true, "data": { "id": "key-new-123", "name": "Production Server", "full_key": "pk_live_abc123xxxxxxxxxxxxxxxxxxxxxxxx", "key_prefix": "pk_live_abc12", "scopes": ["topics:submit", "topics:read", "personas:read"], "created_at": "2026-01-30T15:00:00Z" } }
Create a new API key