Microscopic traffic simulators are the most advanced tools for representing the movement of vehicles on a transport network. However, the energy spent in traffic microsimulation has been mainly oriented to cars. Little interest has been devoted to more sophisticated models for simulating transit systems. Commercial software has some options to incorporate the operation of transit vehicles, but they are insufficient to properly consider a real public transport system. This paper develops an Application Programming Interface, called MIcroscopic Simulation of TRANSIT (MISTRANSIT), using the commercial microsimulator PARAllel MICroscopic Simulation. MISTRANSIT makes advances in three ways: public transport vehicles can have new characteristics; passengers are incorporated and traced as individual objects; and specific models represent the interaction between passengers and vehicles at stops. This paper presents the modelling approach as well as various experiments to illustrate the feasibility of MISTRANSIT for studying policy operations of transit systems.