Fixes #33 - updated api to include message direction as a path parameter