At the moment the only way to do this is by accessing the Retool storage database when self-hosting. We are taking a look at creating app endpoints as part of a longer-term API project but we're still in early development and don't have a timeframe for when they might be available.