API For TestFlight Internal Tester Only Builds

WWDC announced this new feature where you can distribute builds that are only for testing, not to be submitted to the App Store.

Is there a way via the API to do this?

It's available in Xcode distribution window, but that's not helpful for automation.