Request and send a verification code
Request a verification code for the provided identifier (email/phone). if you're using email as the identifier, you need to setup your email connector first. if you're using phone as the identifier, you need to setup your SMS connector first.
        POST
    /api/verification-codes
  
  curl \
 --request POST 'https://[tenant_id].logto.app/api/verification-codes' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"email":"string"}'
    
        Request examples
  
  
                    Object-1
      
        
  {
  "email": "string"
}
{
  "phone": "string"
}