List Api Keys Via Edge Function
Authentication
List Api Keys Via Edge Function
List all API keys for the authenticated user (via Edge Function)
Returns all API keys (active and revoked) created by the user, along with counts showing usage against the limit.
Security:
- Only callable by edge functions (validated via shared secret)
- Edge function validates user’s JWT on Supabase side
Headers (from edge function): X-Edge-Secret: Shared secret X-User-Id: Supabase user ID (already validated) X-User-Email: User email (already validated)
Returns: ListAPIKeysResponse with keys list and counts (total, active, max)
GET
List Api Keys Via Edge Function