Skip to content
NewiPhone Duo, live in your browser. Try it →

VibeView for Platforms Overview Publishing to stores

Publishing to stores

Send an account's build to a Google Play track or to TestFlight from your server with the account's own keys, follow it to the end, and retry safely.

Your server can send an account’s build to Google Play: a succeeded production build of one of the account’s Android or Android TV apps goes to a Google Play track, uploaded with the account’s own Google Play key, under the account’s own developer account. VibeView uploads it, reports what Google answered, and tells your server how it ended. An iOS or Apple TV build goes to TestFlight the same way: see TestFlight.

Every request on this page acts in one account: send an access token of that account, or your partner key with a VibeView-Account header (see Acting in an account). Sending a build needs the scope submissions:write; builds:write alone never publishes. Reading submissions needs submissions:read. Both are allowed by a contract with submissions; without it they are refused with 403 capability_disabled.

There are two ways to send a build:

  • When you start the build. Give the build a submit (see Send it to Google Play when it succeeds): VibeView sends it as soon as it succeeds, with the same settings and rules as below, and the build’s submit shows the submission it made.
  • Later, with POST /api/v1/submissions, once the build has succeeded, as this page shows. Use it also to send a build again after a failed submission.

Both make the same submission: it is followed, read and told to you the same way.

Before you start

  • The app exists in Play Console. Google Play’s API cannot create an app. The account’s owner (your customer) creates it in Play Console and finishes the setup tasks it asks for. Google may ask for the app’s first release to be uploaded in Play Console by hand; once Play Console knows the app, VibeView sends its builds.
  • The account has a Google Play key that Play Console’s Users and permissions allows to release the app. See Store accounts.
  • The build is ready. A production build of the account’s own Android or Android TV app that succeeded, whose file is still stored. See Start a build from a template.

Send a build

curl -X POST https://vibeview.io/api/v1/submissions \
  -H "Authorization: Bearer $VIBEVIEW_KEY" \
  -H "VibeView-Account: org_2f9c0a7d41e3b856" \
  -H "Idempotency-Key: 6f1c2b7e-submit-b8x2k4m9q1" \
  -H "Content-Type: application/json" \
  -d '{"build": "b8x2k4m9q1", "track": "internal", "play_key": "release", "release_notes": "Bug fixes"}'
Member
buildRequired. One of the account’s builds (its id).
trackRequired. The Google Play track: internal, alpha, beta or production.
play_keyThe name of the account’s Google Play key to upload with: 1 to 256 characters, its name and never its file (see Which key uploads it). A value that cannot be a name is 422 invalid_request, and the answer never repeats it.
release_statuscompleted, draft or inProgress. Default completed, and draft on the production track, so a submission that names none never releases to every user.
rolloutWith release_status inProgress only, and required with it: the fraction of users the staged rollout reaches, between 0 and 1 (exclusive), for example 0.1.
release_notesWhat’s new in this release, in the app’s default language; at most 500 characters.
changes_not_sent_for_reviewtrue saves the changes in Play Console without sending them for review. Set it when Google refuses to send the app’s changes for review automatically, then send them from Play Console.

Any other member is 422 invalid_request naming it.

The answer is the submission, queued, with 201:

{
  "object": "submission",
  "id": "sub_4k2m9q7x1d",
  "build": "b8x2k4m9q1",
  "app": "a7c3n5p2r8",
  "store": "play",
  "track": "internal",
  "status": "queued",
  "state": "uploading",
  "failure_reason": null,
  "error_summary": null,
  "play_key": "release",
  "version_code": 42,
  "version_name": "1.4.2",
  "asc_key": null,
  "beta_groups": null,
  "release_notes": "Bug fixes",
  "export_compliance": null,
  "needs_action_reason": null,
  "build_number": null,
  "created": 1764072000,
  "finished": null,
  "livemode": false
}

The upload starts at once. version_code and version_name are read from the build’s file (null when it does not say). The object and its fields are described in Store submissions.

Which key uploads it

  • With play_key, the account’s Google Play key of that name. A name the account has no key of is 404 store_key_not_found (field: play_key).
  • Without it, the account’s only Google Play key, or, when it has several, the one named play. An account with no key, or with several and none named play, is 409 store_key_required: upload one, or name one.

The key is looked up by its name again when the upload starts: a key replaced under the same name uploads it, and a key deleted before then fails the submission with failure_reason store_key_not_found (nothing is sent to Google). Only the account’s own keys are used, never another account’s or your organization’s.

Test partners

An account of a test partner submits to the internal track only: any other track is 403 submission_not_allowed_on_test, and nothing is sent.

Follow it

Read the submission (GET /api/v1/submissions/{public_id}) or its log (GET /api/v1/submissions/{public_id}/log, from an offset) while status is queued or running. When it ends, VibeView sends submission.succeeded or submission.failed to your webhook endpoints, once, with the submission as data.object (see Submission events). Nothing about an account’s submissions is sent to anyone else.

Retrying safely

Send an Idempotency-Key with every submission. A retry with the same key and the same body gets the first answer again (with Idempotent-Replayed: true) and never uploads the build twice; the same key with another body is 422 idempotency_key_reused, and a retry while the first request is still running is 409 idempotency_in_progress (retry after Retry-After).

What to do with each refusal:

  • Stop and fix the request. build_not_found, build_not_submittable (this build can never be submitted), artifact_unavailable, submission_not_allowed_on_test and invalid_request are kept for the key: a retry with the same key gets the same answer. Send a corrected request with a new key.
  • Wait, then retry with the same key. build_not_finished (the build is still queued or running: retry once build.succeeded arrives), store_key_required and store_key_not_found (upload the key, then retry), and for TestFlight beta_group_not_found (create the group), store_key_invalid (upload a working key), apple_app_not_found (create the app record), apple_agreement_required (accept the agreements) and store_unavailable (App Store Connect did not answer) are not kept for the key, so the same key runs again once the cause is fixed.
  • Follow the submission it names; do not send a new request. submission_in_progress means a submission of this build is already queued or running: submission is its id and status its status. Read it and its log, and wait for its submission.* event. The answer is kept for the key. If that submission ends failed and you want to send the build again, send a new request with a new Idempotency-Key.

TestFlight

A succeeded production build of one of the account’s iOS or Apple TV apps goes to App Store Connect and TestFlight, uploaded with the account’s own App Store Connect key, under the customer’s own Apple developer team. A build’s submit takes the same members for an iOS or Apple TV app (see iOS and Apple TV builds).

Before you send to TestFlight

  • The account has an App Store Connect key of the customer’s team. See App Store Connect keys.
  • The app record exists in App Store Connect, with the build’s bundle id. Apple’s API cannot create it: the customer creates it in App Store Connect (Apps, then New App).
  • The team’s agreements are accepted. Apple refuses a team until its Account Holder accepts Apple’s latest agreements in App Store Connect (Business).

Send a build to TestFlight

curl -X POST https://vibeview.io/api/v1/submissions \
  -H "Authorization: Bearer $VIBEVIEW_KEY" \
  -H "VibeView-Account: org_2f9c0a7d41e3b856" \
  -H "Idempotency-Key: 6f1c2b7e-testflight-c4m8q2x7v1" \
  -H "Content-Type: application/json" \
  -d '{"build": "c4m8q2x7v1", "store": "app_store", "asc_key": "team", "beta_groups": ["QA"], "release_notes": "Try the new checkout"}'
Member
buildRequired. One of the account’s iOS or Apple TV builds (its id).
storeRequired: app_store. An Android build is sent without it, to Google Play; the other store’s shape is 422 invalid_request (field: store).
asc_keyThe name of the account’s App Store Connect key. Without it, the account’s only key. Looked up by its name again when the upload starts.
beta_groupsTestFlight group names of the app, at most 50. Empty or left out: the build is uploaded to TestFlight and sent to no group.
release_notesWhat to Test, at most 4,000 characters. External groups need it.
uses_non_exempt_encryptionThe app’s export-compliance answer, saved for the app.

Google Play’s members (track, play_key, release_status, rollout) are 422 invalid_request here, naming the member. The submission’s track reads testflight.

The groups are looked up in App Store Connect when you send the request: nothing is stored when one is unknown or App Store Connect does not answer. The export-compliance answer comes from the build itself first (its ITSAppUsesNonExemptEncryption), then the request, then the answer saved for the app.

An account of a test partner sends to internal TestFlight groups only: an external group is 403 submission_not_allowed_on_test. A group that becomes external later stops the distribution with failure_reason submission_not_allowed_on_test.

What you see

The submission is queued, then running while it uploads and Apple processes it. It ends succeeded when its groups’ testers can install it (or when it is in TestFlight, with no groups), or failed. beta_groups shows each group’s state. A build sent when it succeeded whose groups App Store Connect could not look up yet shows them with internal null until the upload goes on.

When the developer account must act, status is needs_action and needs_action_reason says why. Before the upload is through, VibeView sends submission.needs_action once per reason (a reason that comes back is not told again), checks again by itself, and carries on once the cause is fixed. If the upload is not through 7 days after the submission first waited, it is failed, with the reason at that moment as its failure_reason.

needs_action_reasonWhat the customer does
apple_app_not_foundCreate the app record in App Store Connect with the build’s bundle id. Before the upload: fails 7 days after it first waited.
apple_agreement_requiredThe Account Holder accepts Apple’s latest agreements in App Store Connect (Business).
store_key_invalidUpload a working key under the same name (picked up within an hour), or fix the key’s access at Apple; Check again tries it at VibeView’s next pass.
store_key_not_foundUpload a key under the name the submission uses.
store_key_insufficient_roleCreate a key with the App Manager or Admin role and upload it under the same name.
store_unavailableNothing: App Store Connect kept failing, VibeView tries again.
store_refusedApp Store Connect refused a step; the submission’s log says which. Fix it in App Store Connect.
store_processing_delayedNothing: Apple is still processing the build after 2 hours.
export_compliance_requiredAnswer export compliance for the app (PUT /api/v1/apps/{app_id}/export-compliance, or Check again with uses_non_exempt_encryption): the waiting submission goes on at once. An answer in the build’s ITSAppUsesNonExemptEncryption applies to the next submission.
export_compliance_documents_requiredUpload the encryption documents in App Store Connect.
release_notes_requiredExternal groups need What to Test: add it in App Store Connect for this build, then Check again.
beta_test_information_requiredSet the test information (see After the upload), then Check again.
beta_review_contact_requiredSet the Beta App Review contact (see After the upload), then Check again.
beta_review_in_progressWait: another build of this version is in Beta App Review.
beta_review_rejectedApple rejected the build in Beta App Review: fix the issue and submit a new build.

A wait before the upload is through is told once per reason and fails 7 days after it first waited, with the reason at that moment as its failure_reason. A wait in TestFlight after the upload has no time limit: it goes on once the cause is fixed.

While a submission waits, a new submission of the same build is 409 submission_in_progress naming the waiting one: fix the cause, or cancel a wait before the upload (see Cancel a waiting submission); such a wait also ends failed 7 days after it first waited.

After the upload

These need submissions:write (reading needs submissions:read) and work on the account’s own iOS and Apple TV apps and their submissions. The app routes take the account’s App Store Connect key by asc_key (its name; without it the account’s only key); the submission routes use the submission’s own key. Calls that reach App Store Connect count toward the account’s 10 store calls a minute; Check again and Stop take none (only the retry of a refused key does, when it runs).

CallWhat it does
POST /api/v1/submissions/{id}/checkCheck again: once the cause is fixed, VibeView looks again at its next pass. A waiting upload is tried again then (its 7 days still run). At most once every 30 seconds per submission.
POST /api/v1/submissions/{id}/stopStop following: VibeView stops following the distribution. Apple is told nothing; the build stays in TestFlight. Stop following sends no event; its answer is the submission. On a submission whose upload still waits, it cancels it (below).
PUT /api/v1/apps/{app_id}/export-complianceThe app’s export-compliance answer (uses_non_exempt_encryption). Submissions waiting on it go on.
GET /api/v1/apps/{app_id}/testflightThe app’s test information, Beta App Review contact and groups. If App Store Connect does not answer for any part, 503 store_unavailable: retry later.
PUT /api/v1/apps/{app_id}/testflight/test-infoOne language’s test information (locale, description, feedback_email, URLs).
PUT /api/v1/apps/{app_id}/testflight/review-contactWho Beta App Review contacts, and the sign-in account its reviewers use.
POST /api/v1/apps/{app_id}/testflight/groupsA new TestFlight group (name, internal).
GET /api/v1/submissions/{id}/testflight/groupsThe app’s groups, each added when the build goes to it.
POST /api/v1/submissions/{id}/testflight/groupsSend a finished build to more groups by name, or new What to Test notes.
curl -X PUT https://vibeview.io/api/v1/apps/Hq7tWc2xLp/testflight/review-contact \
  -H "Authorization: Bearer $VIBEVIEW_KEY" \
  -H "VibeView-Account: org_2f9c0a7d41e3b856" \
  -H "Content-Type: application/json" \
  -d '{"first_name": "Ada", "last_name": "Lovelace", "phone": "+37060000000", "email": "ada@example.com"}'

demo_account_password is write-only: VibeView sends it to Apple and never stores or returns it (demo_account_password_set says whether Apple has one). Only the members you send change, and a value App Store Connect has cannot be emptied. Testers are added in App Store Connect.

An account of a test partner creates and adds internal groups only: an external group is 403 submission_not_allowed_on_test.

Cancel a waiting submission

While a TestFlight submission’s upload waits for the developer account (status needs_action before the upload, or queued after App Store Connect did not answer), POST /api/v1/submissions/{id}/stop cancels it: its status becomes cancelled, VibeView’s work on it stops, submission.cancelled is sent once, and the build can be sent again at once. If the file had already been sent to App Store Connect, the build can still appear in TestFlight, and Apple gives it to groups that get every build; VibeView adds it to no group and starts no review (the submission’s log says so). Sending the same build again carries on with that file. Once the upload is through, the same call stops following the distribution instead.

MessageWhat to do
409 submission_state_conflictThe submission is not in a state for that call; its status says where it is. Read it, then act on it.
409 beta_group_existsThe app already has a group of that name (the error’s group is it): use it.
429 rate_limitedWait Retry-After, then retry.
503 busyVibeView is writing to Apple for this submission. Retry after Retry-After.
422 invalid_requestA value was refused; field names it.

TestFlight messages

MessageWhat to do
409 apple_app_not_foundCreate the app record in App Store Connect, then retry.
409 apple_agreement_requiredAsk the team’s Account Holder to accept Apple’s agreements, then retry.
422 beta_group_not_foundSend group names the app has in App Store Connect.
422 store_key_invalidUpload a working App Store Connect key, then retry.
503 store_unavailableApp Store Connect did not answer. Retry with the same Idempotency-Key.

Errors

StatuscodeWhen
403insufficient_scopeThe credential lacks submissions:write (required_scope).
403capability_disabledStore submissions are not part of your contract.
403submission_not_allowed_on_testAn account of a test partner named a track other than internal (field: track), or an external TestFlight group (field: beta_groups).
403account_suspended_by_partner, organization_suspended, account_deleting, partner_unavailableThe account cannot act now (see Error codes).
404build_not_foundNo build of this account has that id (field: build).
404store_key_not_foundThe account has no Google Play key named play_key (field: play_key), or no App Store Connect key named asc_key (field: asc_key).
409build_not_finishedThe build is still queued or running (field: build). Retry with the same key once it has succeeded.
409build_not_submittableThe build can never be submitted: it did not succeed, or it is not a production build of an Android, Android TV, iOS or Apple TV app (field: build).
409submission_in_progressA submission of this build is still queued or running: submission names it, status gives its status (field: build). Follow it.
409store_key_requiredThe account has no Google Play key, or App Store Connect key, this submission can use.
409idempotency_in_progressA request with this Idempotency-Key is still running. Retry after Retry-After.
410artifact_unavailableThe build’s file expired or was deleted (field: build).
422invalid_requestA member is missing, unknown or out of range; field names it.
422idempotency_key_reusedThis Idempotency-Key was used with another body.

The full list is in Errors, idempotency, versioning and rate limits.

Last updated 3 Dec 2026 Something wrong on this page? Tell us

Search the docs