Calling procedure from api endpoint - Theo's Typesafe Cult