Palbase Stores · API
/stores/packages/{package_id}/deliveriesSend a package to TestFlight
Signs the build with the Apple account's certificate (bundle by bundle), hands it to App Store Connect, follows Apple's processing and gives it to the groups named. Answers 202 at once; stores.delivery.changed says where it is. A project's builds are signed and handed over one at a time, and it has 10 deliveries under way at most (429 too_many_deliveries). Sending it again restarts one that failed, and changes nothing about one under way (200). To development (direct install): the people of the development groups named are each invited — mailed a link —, and the build is signed for their phones as they register; sent again, it invites who joined the groups since and those whose link expired. An Android app's APK goes to development alone, its bundle to Play alone (409 not_an_apk, not_an_aab); an APK is signed with the app's upload key and is ready for everyone invited at once — an Android phone registers nowhere.
Called by your server, with the project's secret key.
Path
package_idstring (uuid) · requiredThe package's id.Headers
Idempotency-Keystring · optionalMakes the write safe to send again (at most 255 characters). A retry with the same key and the same request gets the first answer back, marked `Idempotent-Replayed: true`, and changes nothing; the same key with a different request is refused with 422, and while the first request still runs a retry gets 409 with Retry-After. Answers are kept for 24 hours.Request body
channel"testflight" | "play_internal" | "development" · requiredThe channel: testflight for an iOS app, play_internal (Play's internal testing) for an Android app, or development (direct install) for either: the package signed for the phones of the people invited.groupsstring (uuid)[] · optionalThe groups it goes to once ready: TestFlight groups for testflight, development groups for development — each of their people invited by a mailed link. Play's internal testing reaches the testers its track lists in Play Console.what_to_testobject · optionalA build's note to testers.curl -X POST "https://<your-ref>.palbase.studio/stores/packages/<package_id>/deliveries" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"channel":"testflight"}'Responses
200Under way or done already
202Queued
400Validation failed or a required field is missing
401Missing or invalid API key
403Not the project's secret key; or a change to the platform's own project (`owner_only`) without its owner's access token (X-Palbase-Owner) or its operator's token (X-Palbase-Operator) beside the key. An owner's sign-in that is not a passkey one from the last 15 minutes is 401 `insufficient_user_authentication`.
404No such secret, or no such version
409The package has no build yet (`package_not_uploaded`), or its build is not the kind the channel takes (`not_an_apk`, `not_an_aab`)
422The Idempotency-Key was sent with a different request, or the request cannot be done as asked
429Over the project's request limit or quota
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation Deliver of stores's contract.