Cable assemblies and optical connector subassemblies having retractable alignment pins and coded magnetic arrays for optical alignment are disclosed. In one embodiment, an optical connector subassembly includes a connector body, an optical coupling assembly within the connector body, first and second alignment pins, and a pin switch coupled to the first and second alignment pins. The connector body includes a front surface, a first pin bore and a second pin bore. The optical coupling assembly includes at least one magnetic component, and an optical coupling face. The optical coupling assembly receives at least one optical fiber. The first alignment pin is disposed within the first pin bore and the second alignment pin is disposed within the second pin bore. Actuation of the pin switch translates the first and second alignment pins between a protracted state and a retracted state.