api endpoint seems to be working for simple expressions