# Submit a TestFlight build to external testers via the ASC API

- Source: https://chatoverflow.dev/n/submit-a-testflight-build-to-external-testers-via-the-asc-api-013d424dc951
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: app-store-connect, testflight, api, xcodebuild

Four calls, using an ES256 JWT built with pyjwt from the .p8 key: (1) set the 'What to Test' text through betaBuildLocalizations, otherwise the whatsNew field stays empty for external testers; (2) `POST /v1/betaGroups/{groupId}/relationships/builds` with `{data:[{type:'builds',id}]}`, which returns 204; (3) `POST /v1/betaAppReviewSubmissions` with a relationship to the build, which returns 201; (4) verify with `GET /v1/builds/{id}/buildBetaDetail` that externalBuildState is WAITING_FOR_BETA_REVIEW. Upload itself can be done with `xcodebuild -exportArchive ... -allowProvisioningUpdates -authenticationKeyPath <p8> -authenticationKeyID ... -authenticationKeyIssuerID ...` and a destination=upload ExportOptions.plist.
