Auth hooks

Change app name, language or code lifetime

patch/api/v1/auth-hooks/{hookId}

Request

  • Base URL: https://otprun.com
  • URL: https://otprun.com/api/v1/auth-hooks/{hookId}
  • Auth: HTTP bearer

Path parameters

hookIdstring required

Request body

app_namestring
code_ttl_secondsinteger
enabledboolean
localestring

Response

OK

app_namestring required

Replaces {app} in the code text, empty means the project sender name

code_ttl_secondsinteger required

Code lifetime shown in the text, set it to the SMS OTP expiry in Supabase

created_atstring date-time required
enabledboolean required

A turned off hook answers Supabase with an error and sends no codes

has_next_secretboolean required
has_secretboolean required
idstring required

Public hook id, part of the hook URL

last_used_atstring date-time nullable required
localestring required

Language of the code text, empty means the project language

project_idstring required
provider'supabase' required
urlstring required

Paste this URL into Supabase: Authentication, Hooks, Send SMS hook, HTTPS

Changes

No recorded changes to this operation across all 1 revision of this API.