Skip to main content

Edge Function Tester

Location: Sidebar → Edge Function Tester

The Edge Function Tester invokes Supabase Edge Functions and includes automatic source analysis to pre-fill the request form.

Edge Function Authorization

The Edge Function has a setting called "Verify JWT" which will be Enabled or Disabled. If this setting on the function is enabled, it means that a JWT Token must be sent for authentication purposes. If this is the case, Supatester will limit the Authentication context options down to Custom JWT only (you will be required to have created or saved a Custom JWT token in the Authenication page to use this). If this is the case, you will see a message that says:

Verify JWT: Enabled Verify JWT is enforced on this function, so you must supply a Custom JWT context to connect to the function.

If the Verify JWT setting is disabled, you will see the following (in this case, at the tmie of writing this, it means there is no authentication being done on the inbound connection. In this case, you need to authorize the connection in the Edge function code. Reference: https://supabase.com/docs/guides/functions/auth). When JWT Verify is disabled, you will see this in Supatester:

Verify JWT: Disabled Verify JWT is disabled, this means that any authentication context can be used.

Invoking a Function

  1. Select a function from the dropdown. Supatester reads the deployed source code and automatically detects the expected HTTP method, request body shape, and content-type.
  2. Review or modify the HTTP method (GET, POST, PUT, PATCH, DELETE).
  3. Edit the request body (the request body will be pre-filled with json attributes based on edge function parsing by supatester).
  4. Add any custom headers your function requires.
  5. Select an auth context to control whether an Authorization header is sent.
  6. Click Run.

Analysis Warnings

If the source analysis detects patterns that cannot be fully introspected (e.g. WebSocket usage or dynamic routing), a warning banner is displayed. The function can still be invoked, you just need to fill the request body yourself.

Code Preview

The code preview shows the exact supabase.functions.invoke() call including headers and body.

Saving to a Collection

Save any invocation to a collection. Saved edge function calls can be included in test plans and load test runs, and support {{variable}} substitution in both body and header values.