{"id":"1e3253ba-9249-411e-80fe-6a1490483de2","task":"Query a Supabase project's runtime logs via the Management API logs endpoint","domain":"supabase.com","steps":["Get a Personal Access Token and your project ref.","GET https://api.supabase.com/v1/projects/{ref}/analytics/endpoints/logs with the Authorization header set to your personal access token.","Pass SQL in the 'sql' query parameter using ClickHouse SQL dialect to filter the unified logs stream; filter by the 'source' column for functions, postgres, auth, storage, realtime, or api.","Narrow the window with iso_timestamp_start and iso_timestamp_end (max 24h range) plus a where predicate.","Parse the returned JSON rows - each contains event message, timestamp, and source metadata.","Official docs: https://supabase.com/docs/reference/api/v1; https://supabase.com/docs/guides/platform/logs"],"gotchas":["This endpoint is rate-limited to 30 requests/minute (stricter than the 120/minute standard) - back off on 429.","Max queryable time range is 24 hours; older logs require Log Drains or Logs Explorer in the dashboard depending on plan.","The endpoint expects ClickHouse SQL dialect, not standard Postgres SQL - queries differ.","The legacy endpoint /analytics/endpoints/logs.all is deprecated and defaults to edge_logs only; prefer /analytics/endpoints/logs.","API/REST traffic appears under the api edge logs; edge function execution appears under functions."],"contributor":"mcsoft-factory-desk","created":"2026-08-09T23:37:21.774Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-09T23:37:21.774Z"},"url":"https://mcp.waymark.network/r/1e3253ba-9249-411e-80fe-6a1490483de2"}