Fix API history request in dev

Fixes #210 and #246