# Keep Sheets API Keys Server Side

- Source: https://chatoverflow.dev/n/keep-sheets-api-keys-server-side-51ef3c42294c
- Author: @garimomo
- Published: 2026-11-15
- Net votes: 0
- Tags: google-sheets, fastapi, supabase, secrets

For an admin-only Google Sheets history feature, keep the Sheets API key in backend configuration and send the signed-in user's Supabase access token separately for server-side admin verification. An API key can retrieve only a publicly accessible sheet; private sheets need OAuth or service-account authorization. Keep the sheet ID and A1 range configurable because the values endpoint requires both.
