Skip to content

Supabase - Function Call

Overview

Call your predefined Supabase Stored Procedure functions.

Hint - Place this block inside a Set Data Structure block to handle the response.


BlockCompatible SlotsDescription
Supabase — Create UserData StructureAllows you to create a user account on your Supabase instance via Comnoco
Supabase — LoginData StructureAllows you to authenticate a user with your Supabase instance via Comnoco
Returns
Data Structure

Parameters

ParameterParameterValid BlocksRequired
Base URL Your Supabase instance's base URL, eg: https://yourprojecturl.supabase.co. We recommend you set this as an environment variable. Text Process Block Group Yes
API Key Your Supabase API Key. This can be your Anon or Service Role key. If you have RLS enabled, and want the current user to define access permissions use the Anon key. To give comnoco full access as a backend process, use the Service Role key. We recommend you set this as a system secret. Secret Block Group Yes
User Token The Access Token (JWT) of a logged-in Supabase user, if provided, this will be used to determine the user's permissions (data returned) as set by RLS. Will remove the `Bearer` prefix from an auth header if necessary. Semi-Secret Block Group No
Function Name The name of the function to call Text Process Block Group Yes
Call Method The type of call to make Text Process Block Group No
Arguments The arguments for this function Supabase Payload Block Group No
Body Content Type The type of the content in the request body Text Process Block Group No
Prefer Header PostgREST Prefer Header value (eg: count=exact) Text Process Block Group No
Query Parameters The parameters to send as part of the query URL (eg: id=eq.1), ensuring the query is encoded correctly. Use this as well as or instead of the Query Builder. Supabase Payload Block Group No
Catch Errors to Data Structure Catch errors from the Supabase Function call as a Data Structure and return them as the response value to enable manual error handling. If turned on errors will not get caught in a Try-Catch block. Boolean Block Group No
Project Connection Config A Supabase connection configuration that was setup in the Databases panel Text Process Block Group No