api: add new bind and unbind endpoints