There isn’t a master track, however there is a master section for plugins. They process the main outputs only. You can put automation for them on any track. You can get access to the master plugins with Edit::getMasterPluginList().
What exactly are you trying to do?
There’s essentially two things you can get that are “master”: VolumeAndPanPlugin::Ptr Edit::getMasterVolumePlugin() const PluginList& Edit::getMasterPluginList() const noexcept
Then you can add plugins, remove plugins etc. in the usual way, it’s just a PluginList the same as those that live on Tracks.
If you want to automate master plugin parameters (or the mast vol/pan parameters) you do so like any other parameter (all AutomatableParameters have AutomationCurves you can add points to). You don’t need to add parameters to tracks to automate them, this is merely a visual thing we do in Waveform.
I hope that helps. If not, maybe there’s a more specific question we can answer?
The master levels are only available when there is an active EditPlaybackContext. You can get it with EditPlaybackContext::masterLevels. I hope that helps.