Hubs api

Hubs api ready for review