WIP on http API