Send Supabase phone codes over WhatsApp
set_supabase_hookCreate or update the hook that lets a Supabase project send its phone sign-in and verification codes over WhatsApp instead of SMS. Supabase keeps making and checking the code; we deliver it. On Supabase Cloud, open Authentication → Auth Hooks, add a Send SMS hook of type HTTPS, and paste the answer's record.url and secret. If you host Supabase yourself, put record.url in GOTRUE_HOOK_SEND_SMS_URI and secret in GOTRUE_HOOK_SEND_SMS_SECRETS, then set GOTRUE_HOOK_SEND_SMS_ENABLED: "true". The secret comes back ONCE, on the first save or when you rotate it; after a rotation the old one keeps working for 24 hours. Codes are metered under the API key that saves the hook. Each code is a normal message: it counts toward your quota, and the first code to someone the number has never talked to uses one of its new conversations for the day. Free to call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_supabase_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| numberId | No | The number codes are sent from. `null` uses your one connected number. Leave it out to keep the current choice. | |
| template | No | The message, with `{code}` where the code goes, e.g. "Your Acme code is {code}". `null` restores the default. Leave it out to keep the current one. | |
| rotateSecret | No | Mint a new secret and return it. The old one keeps working for 24 hours, while you update Supabase. |