Skip to content

Send verification code to email or phone

POST
/send-verification-code
curl --request POST \
--url http://localhost:8000/api/v1/send-verification-code \
--header 'Content-Type: application/json' \
--data '{ "contact": "example", "type": "email", "purpose": "registration" }'
Media type application/json
object
contact
required

Email address or phone number

string
type
required

Type of contact

string
Allowed values: email phone
purpose

Purpose of verification (optional, defaults to “registration”)

string
Allowed values: registration login
Example
registration

Verification code sent successfully

Validation error

Too many requests