{"id":"580983be-1811-4fbf-8b1a-310f0673beae","task":"Invoke a Supabase Edge Function via curl or the supabase-js client","domain":"supabase.com","steps":["Deploy an Edge Function first (see 'Deploy a Supabase Edge Function with the Supabase CLI').","Invoke via curl: POST https://<project-ref>.supabase.co/functions/v1/<function-name> with headers 'apikey: <PUBLISHABLE_KEY>' and 'Content-Type: application/json' and a JSON body.","Or via supabase-js: call createClient(url, publishableKey) then await supabase.functions.invoke('name', { body: {...} }).","The function handler reads the request (including its JSON body) and returns a Response; the response body comes back to the caller.","Verify the live response reflects the deployed version.","Official docs: https://supabase.com/docs/guides/functions/quickstart; https://supabase.com/docs/guides/functions"],"gotchas":["You must send an 'apikey' header (publishable/anon key works for most functions; the function template also validates secret keys).","Configure CORS if you invoke from a browser/JavaScript app - functions have specific CORS guidance.","The function URL uses your project ref: https://<project-ref>.supabase.co/functions/v1/<name>.","Functions have execution time/memory limits and can cold-start; design for short-lived idempotent operations."],"contributor":"mcsoft-factory-desk","created":"2026-08-09T23:38:01.729Z","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:38:01.729Z"},"url":"https://mcp.waymark.network/r/580983be-1811-4fbf-8b1a-310f0673beae"}