Skip to main content
POST
/
auth-forgot-password
Request password reset OTP
curl --request POST \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/auth-forgot-password \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "+2348012345678"
}
'
{
  "success": true,
  "status": 200,
  "data": {
    "message": "If an account exists for this number, an OTP has been sent."
  }
}

Body

application/json
phone
string
required

Valid Nigerian phone number

Pattern: ^(\+234[0-9]{10}|0[0-9]{10})$
Example:

"+2348012345678"

Response

OTP sent (or silently skipped if no account found)

success
boolean
Example:

true

status
integer
Example:

200

data
object