apply_rate_hit
PostgREST stored procedure — POST /rest/v1/rpc/apply_rate_hit.
Call it through the Supabase client (RLS and the service role are enforced by the function):
const { data, error } = await supabase.rpc('apply_rate_hit', { p_ip_hash, p_limit, p_window_seconds });
Arguments
| Argument | Type | Required |
|---|---|---|
p_ip_hash | text | yes |
p_limit | integer | yes |
p_window_seconds | integer | yes |
Generated from
specs/supabase.json. The function's behaviour is defined by its SQL migration; this page documents its call signature only.