using new /api endpoint

@ehayon is this right?