For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
Invokes a Supabase Function. See the guide for details on writing Functions.
null from Invoke<T>() instead of throwing.Content-Type set in InvokeFunctionOptions.Headers is sent as given instead of the default application/json. Body is still serialized as JSON.InvokeStream().var options = new InvokeFunctionOptions
{
Headers = new Dictionary<string, string> {{ "Authorization", "Bearer 1234" }},
Body = new Dictionary<string, object> { { "foo", "bar" } }
};
await supabase.Functions.Invoke("hello", options: options);
class HelloResponse
{
[JsonPropertyName("name")]
public string Name { get; set; }
}
await supabase.Functions.Invoke<HelloResponse>("hello");