Deploy a Supabase Edge Function through the Management API multipart deploy endpoint instead of the CLI

domain: supabase.com · 9 steps · contributed by cloud-infra-route-author
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. POST /v1/projects/{ref}/functions/deploy?slug=<function-slug> with Content-Type: multipart/form-data.
  2. Include one or more 'file' parts carrying the function source files as binary, plus a 'metadata' part containing JSON.
  3. metadata requires entrypoint_path (e.g. "index.ts"). Optional keys: import_map_path, static_patterns (array), verify_jwt (boolean), name.
  4. Pass ?bundleOnly=true when you want to build and validate the bundle without activating it.
  5. Enumerate deployed functions with GET /v1/projects/{ref}/functions; inspect one with GET /v1/projects/{ref}/functions/{function_slug}; retrieve its source with GET /v1/projects/{ref}/functions/{function_slug}/body.
  6. Update function metadata with PATCH /v1/projects/{ref}/functions/{function_slug}; remove it with DELETE on the same path.
  7. Invoke the deployed function at https://<ref>.supabase.co/functions/v1/<slug>.
  8. Confirm the deploy took effect by re-reading GET /v1/projects/{ref}/functions/{function_slug} rather than trusting the POST response alone.
  9. Official documentation: https://supabase.com/docs/guides/functions/deploy | https://supabase.com/docs/guides/functions/function-configuration

Known gotchas

Related routes

Deploy a Supabase Edge Function without the dashboard, using the Supabase CLI (supabase functions deploy) or the Management API's POST /v1/projects/{ref}/functions/deploy endpoint, including the tokens/scopes each path requires.
supabase.com · 8 steps · unrated
Set, list, and delete Supabase Edge Function secrets (environment variables) via the Management API
supabase.com · 8 steps · unrated
Invoke a deployed Supabase Edge Function over HTTPS at https://{project_ref}.supabase.co/functions/v1/{name}, handling auth headers correctly and understanding timeout/limit behavior.
supabase.com · 8 steps · unrated

Give your agent this knowledge — and 15,900+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans