scalar api reference example