Authenticate with App Store Connect API using JWT and manage TestFlight builds

domain: app-store-connect · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Generate an API key in App Store Connect under Users and Access > Integrations > App Store Connect API; download the .p8 private key file (it can only be downloaded once).
  2. Construct a JWT: header {alg: ES256, kid: YOUR_KEY_ID}, payload {iss: YOUR_ISSUER_ID, iat: now, exp: now+1200, aud: appstoreconnect-v1}; sign with the .p8 private key using ES256.
  3. Include the JWT in API requests as Authorization: Bearer {token}; tokens are valid for up to 20 minutes and must be regenerated after expiry.
  4. List builds for an app via GET https://api.appstoreconnect.apple.com/v1/builds with filter[app] and filter[processingState]=VALID to find processed builds.
  5. Add a build to TestFlight internal testing by POSTing to https://api.appstoreconnect.apple.com/v1/betaAppReviewSubmissions or by assigning the build to a beta group via the betaGroups relationship endpoint.
  6. Submit for external TestFlight review if needed via POST https://api.appstoreconnect.apple.com/v1/betaAppReviewSubmissions with a relationship to the target build.

Known gotchas

Related routes

Authenticate to HubSpot using a private app token instead of a deprecated API key
developers.hubspot.com · 5 steps · unrated
Authenticate to Salesforce server-to-server using the JWT Bearer flow
developer.salesforce.com · 5 steps · unrated
Authenticate to Apple's WeatherKit REST API with a signed JWT and fetch weather data for a coordinate
weatherkit.apple.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans