auth

Resends a one-time password (OTP) through email or SMS.

Changed on

Allows a user to resend an existing signup, sms, email_change or phone_change OTP.

post/resend

Request

  • Base URL
    https://abcdefghijklmnopqrst.supabase.co/auth/v1
  • URL
    https://abcdefghijklmnopqrst.supabase.co/auth/v1/resend
  • Auth
    API key in header apikey

Request body

emailstring email

Applicable only if type is with regards to an email address.

phonestring phone

Applicable only if type is with regards to an phone number.

type'signup' | 'email_change' | 'sms' | 'phone_change'

Response

A One-Time Password was sent to the email or phone. To obfuscate whether such an address or number already exists in the system this response is sent in both cases.

message_idstring

Unique ID of the message as reported by the SMS sending provider. Useful for tracking deliverability problems.

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status