Minikits are scattered throughout every level, and the trick is that most of them are only reachable on Free Play.
Each kit has three pieces hidden in places that require a specific character ability — a force power, a grapple, a droid interface, a thermal detonator. In Story mode you simply do not have the right character available at the right moment, so you have to return with the full roster unlocked.
Work a level methodically on Free Play, switch characters constantly, and check the high ledges and the destructible corners. Collecting all three pieces of a kit assembles a vehicle or ship for the hub.