Each account of your partner can hold its own store keys: the credentials VibeView uses to publish that account’s builds to a store under the account’s own developer account. An account holds Google Play keys and App Store Connect keys. Your server sends the account’s builds to Google Play with its Google Play keys, and to TestFlight with its App Store Connect keys, and reads the account’s store submissions (see Store submissions and Publishing to stores). App Store Connect keys can be uploaded, listed, checked and deleted (see App Store Connect keys); VibeView uses them to generate an iOS or Apple TV app’s signing certificate (see Builds in accounts) and to send builds to TestFlight (see TestFlight). Amazon Appstore keys are coming soon.
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). Listing keys needs
the scope store_keys:metadata; uploading, deleting and checking them need
store_keys:write. Both are allowed by a contract with submissions; without it they are
refused with 403 capability_disabled.
Make a Google Play key
A Google Play key is the JSON key file of a Google Cloud service account that the app’s Google Play developer account has invited. The account’s owner (your customer) makes it:
- In the Google Cloud console, in a project of their own, create a service account.
- On the service account’s Keys tab, add a key of type JSON. The browser downloads the key file.
- In Google Play Console, under Users and permissions, invite the service account’s email address and give it permission to release the app.
Some Google Cloud organizations do not allow service account key files: the console then
says an organization policy (iam.disableServiceAccountKeyCreation) prevents creating the
key, which is on by default in organizations created since 2024. An organization policy
administrator of the customer’s Google Cloud organization can turn the policy off for the
project that holds the service account.
Upload a key
Send the key file as multipart/form-data, with an optional name (default play):
curl -X POST https://vibeview.io/api/v1/signing-credentials/play-keys \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H "VibeView-Account: org_2f9c0a7d41e3b856" \
-F "name=play" \
-F "file=@service-account.json"
The answer is the store key, 201 for a new name:
{
"object": "store_key",
"id": "playkey_3k9d2m7q1x",
"store": "play",
"kind": "json_key",
"name": "play",
"client_email": "publisher@my-project.iam.gserviceaccount.com",
"last_used_at": null,
"created": 1764072000,
"livemode": false
}
storeisplay(Google Play).kindsays how the key connects to the store:json_key, a service account’s JSON key file. Both are open sets: new values may be added.client_emailis the service account’s address, read from the file.last_used_atis the last time Google accepted the key (unix seconds),nullbefore.- The key file itself is never returned, by this or any other request, and never repeated in an error: a malformed upload is refused without echoing what was sent.
A file that is not a service account’s JSON key (it needs client_email and private_key),
or is over 256 KB, is refused with 422 store_key_invalid.
Replace a key
Upload again under the same name. The account’s key of that name keeps its id and gets
the new file, and the answer is 200. This is how you rotate a key: make a new key file in
Google Cloud, upload it under the same name, then delete the old key file in Google Cloud.
Because an upload under the same name replaces the key, repeating an upload is harmless; with
an Idempotency-Key, a repeat of the same upload (the same name and the same file) also
replays the first answer.
List keys
GET /api/v1/signing-credentials/play-keys
The account’s Google Play keys, newest first, in the usual list envelope (limit 1 to 100,
starting_after a store key id; see Pagination).
Check a key
POST /api/v1/signing-credentials/play-keys/{public_id}/test
Signs in to Google Play with the key, now, and says what Google answered:
{
"object": "store_key_check",
"store_key": "playkey_3k9d2m7q1x",
"status": "accepted",
"message": "Google accepted the service account. Play Console access is checked when you submit.",
"livemode": false
}
status | Meaning |
|---|---|
accepted | Google took the key. Whether it may release the app is checked when the app is submitted. |
refused | Google refused the key. Make a new key file and upload it under the same name. |
unreadable | The stored key file cannot be used. Upload it again under the same name. |
unavailable | Google gave no usable answer. Try again later. |
status is an open set: new values may be added. A check changes nothing but the key’s
last_used_at (when Google accepts it), so it is safe to repeat.
Delete a key
DELETE /api/v1/signing-credentials/play-keys/{public_id}
Answers {"object": "store_key", "id": "…", "deleted": true}. A key already deleted is
404 store_key_not_found.
App Store Connect keys
An App Store Connect key is a team API key of the customer’s Apple developer team: a .p8
key file with the team’s issuer id and the key’s id. VibeView uses it only for what your
requests ask in that account.
What the key reaches: every app of the customer’s team. Apple’s team keys cannot be limited to one app, so tell your customer that the key reaches all of their team’s apps.
Make an App Store Connect key
The customer makes it in App Store Connect:
- Once per team, the team’s Account Holder requests access to the App Store Connect API (Users and Access, Integrations). Apple approves each team’s request.
- An Account Holder or Admin opens Users and Access, Integrations, Team Keys, and generates a key with the access the customer wants VibeView to have.
- They download the key file (
AuthKey_<key id>.p8; Apple lets them download it once) and copy the Issuer ID shown above the keys and the key’s Key ID.
Only team keys work. An individual key (under Individual Keys) has no issuer id and is refused.
Upload an App Store Connect key
Send the key file, issuer_id and key_id as multipart/form-data, with an optional name
(default team):
curl -X POST https://vibeview.io/api/v1/signing-credentials/asc-keys \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H "VibeView-Account: org_2f9c0a7d41e3b856" \
-F "name=team" \
-F "issuer_id=69a6de7e-1234-47e3-a053-5b8c7c11a4d1" \
-F "key_id=ABC123DEFG" \
-F "file=@AuthKey_ABC123DEFG.p8"
VibeView checks the key with Apple before it saves it. The answer is the store key, 201 for
a new name, 200 when it replaced the account’s key of that name (the same id):
{
"object": "store_key",
"id": "asckey_7q2m4k9x1d",
"store": "app_store",
"kind": "api_key",
"name": "team",
"issuer_id": "69a6de7e-1234-47e3-a053-5b8c7c11a4d1",
"key_id": "ABC123DEFG",
"last_used_at": 1764072000,
"created": 1764072000,
"livemode": false
}
storeisapp_store,kindisapi_key. Both are open sets.last_used_atis the last time Apple accepted the key: its upload, then each check.- The key file is never returned and never repeated in an error.
- An account may hold several keys, under different names. With an
Idempotency-Key, a repeat of the same upload replays the first answer without asking Apple again. - Each upload that reaches Apple counts toward the account’s 10 store calls a minute, shared
with key checks; the next is
429 rate_limited(limitstore_key_checks). A replay and an upload refused before Apple is asked do not count.
Check an App Store Connect key
POST /api/v1/signing-credentials/asc-keys/{public_id}/test
Uses the key with Apple, now. status has the same four values as a Google Play check
(accepted, refused, unreadable, unavailable). For an accepted key, capabilities
says what Apple let the key read in its team:
{
"object": "store_key_check",
"store_key": "asckey_7q2m4k9x1d",
"status": "accepted",
"message": "App Store Connect accepted the key: it can read the team's apps and its TestFlight groups; it cannot read its certificates.",
"capabilities": { "upload": "ok", "testflight": "ok", "signing": "refused", "agreements": "ok" },
"livemode": false
}
| Capability | ok means |
|---|---|
upload | Apple accepted the key and let it read the team’s apps. |
testflight | Apple let the key read the team’s TestFlight groups. |
signing | Apple let the key read the team’s certificates. |
agreements | Apple did not refuse the team for its agreements. |
Each is ok, refused (Apple refused the read, or for agreements, refused the team until
it accepts Apple’s updated agreements) or unknown (Apple did not answer for it: check again
later; or the key was not accepted: fix the key first). Only the team’s Account Holder can
accept Apple’s agreements, in App Store Connect.
A read is not a write. Creating TestFlight groups, sending builds to Beta App Review and creating certificates need a key with App Manager or Admin access; a key with less access shows up as a refusal when that action is tried.
List and delete App Store Connect keys
GET /api/v1/signing-credentials/asc-keys
DELETE /api/v1/signing-credentials/asc-keys/{public_id}
They work as the Google Play key routes above: newest first in the usual list envelope, and
{"object": "store_key", "id": "…", "deleted": true} for a delete.
When an App Store Connect upload is refused
| Message | What to do |
|---|---|
422 invalid_request, field issuer_id | Send the Issuer ID from App Store Connect, a UUID. |
422 invalid_request, field key_id | Send the Key ID, letters and digits only. |
422 store_key_invalid, field file | Send the .p8 file Apple gave you, unchanged (at most 256 KB). |
422 store_key_invalid, no field: “Apple did not accept this key” | Apple does not say which part: check the key was not revoked, the Issuer ID is this team’s, and it is a team key, not an individual key. |
422 store_key_invalid, no field: “Apple accepted the key’s signature, but the key’s access does not allow it” | Create a team key with more access in App Store Connect and upload it. |
429 rate_limited, limit store_key_checks | The account made 10 store calls this minute (uploads and checks). Retry after Retry-After. |
503 store_unavailable | Apple gave no usable answer, and nothing was saved. Try again later. |
Whose keys are whose
A store key belongs to one account. Another account of your partner never lists, checks,
uses or deletes it (its id is 404 store_key_not_found there), and neither do the people of
your own organization. Your organization’s own store keys are never used for an account.
When an account is deleted, its store keys are erased with it.
Store submissions
A store submission sends one of the account’s builds to a store: Google Play or TestFlight. Your
server sends one with the scope submissions:write (see
Publishing to stores), and lists and reads the account’s submissions and
their logs with submissions:read. Both are allowed by a contract with submissions; without
it they are refused with 403 capability_disabled.
The submission object
{
"object": "submission",
"id": "sub_4k2m9q7x1d",
"build": "b8x2k4m9q1",
"app": "a7c3n5p2r8",
"store": "play",
"track": "internal",
"status": "succeeded",
"state": "released",
"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": 1764072190,
"livemode": false
}
buildis the account’s build it sent, andappthat build’s app (nullonce the app is deleted).storeisplay(Google Play) orapp_store(TestFlight).trackis the Google Play track it went to (testflightfor TestFlight).- For TestFlight:
asc_keyis the App Store Connect key’s name,beta_groupsthe groups it goes to with each one’sstate,build_numberandversion_namethe build’s, andexport_compliancethe answer it goes with and itssource(build,submissionorapp).needs_action_reasonsays why aneeds_actionsubmission waits (see TestFlight).release_notesare the notes sent, on either store. These arenullwhere they do not apply. play_keyis the name of the account’s Google Play key it uses, ornullwhen it names none: then the account’s only key, or the one namedplay, signs it. A key is looked up by that name when the upload starts, so a key replaced under the same name signs the next upload; a key deleted before then fails the submission withfailure_reasonstore_key_not_found. Your organization’s own keys, and another account’s, are never used.version_codeandversion_nameare the version sent to Google Play (for TestFlight,version_nameandbuild_number; read from the build’s file when it is submitted, confirmed by Google’s answer),nullwhen unknown.createdandfinishedare unix seconds;finishedisnulluntil it ends.store,status,stateandfailure_reasonare open sets: new values may be added.
status says where the submission is:
status | Meaning |
|---|---|
queued | Waiting to upload. |
running | Uploading, or the store is still processing it. |
succeeded | The store took it. |
failed | It did not reach the store, or the store refused it. failure_reason says why. |
needs_action | The store waits for the developer account’s owner: needs_action_reason says why. A Google Play submission never does; a TestFlight one may: fix the cause, then Check again (see After the upload). |
cancelled | You cancelled a TestFlight submission while its upload waited (see Cancel a waiting submission). VibeView’s work on it stopped; if the file had already been sent to App Store Connect, the build can still appear in TestFlight. The build can be sent again. |
state says what the store did with it, in more detail. For Google Play:
state | Meaning |
|---|---|
uploading | Not uploaded yet (status queued or running). |
submission_failed | It failed (status failed). |
released | Released to the Internal testing track. |
draft | Saved as a draft in Play Console. |
not_sent | Saved in Play Console, not sent for review. |
sent | Sent to another track, or as a staged rollout (it starts after Google’s review). |
For TestFlight: uploading, submission_failed, cancelled, uploaded (in TestFlight, sent to no group),
processing, distributing, in_review (Beta App Review), waiting_on_apple, available
(its groups’ testers can install it), needs_action, distribution_failed and stopped.
Other stores add their own states; read an unknown one by its status.
failure_reason is null unless status is failed:
failure_reason | Meaning |
|---|---|
store_key_not_found | The Google Play or App Store Connect key it named was deleted before the upload. Upload a key under that name and submit again. |
submission_not_allowed_on_test | Your partner is a test partner and a TestFlight group is external: a build’s submit named one, or a group became external before the build was added to it. Nothing was sent to the group. |
apple_app_not_found, apple_agreement_required, store_key_invalid, store_unavailable | A TestFlight submission was not through its upload 7 days after it first waited, for that reason. |
beta_group_not_found | A build sent to TestFlight when it succeeded named a TestFlight group the app does not have. |
account_unavailable | The account could not act (it or your partner was suspended, or it is being deleted). |
capability_disabled | Store submissions are no longer part of your contract. This is checked again when the upload starts: nothing is sent to the store. |
submission_error | The store refused it (or refused the account’s key), or the submission’s own request could not be sent as asked. error_summary says why. |
internal | VibeView could not finish it on its side (for example the upload was interrupted, or the build’s file is no longer available). error_summary says what happened, and where to check when Google may already have it. |
error_summary is one sentence about why it failed, or null.
List submissions
GET /api/v1/submissions
The account’s submissions, newest first, in the usual list envelope (limit 1 to 100,
starting_after a submission id; see Pagination). Filter
with build (one of the account’s builds; another id is 404 build_not_found) or app (one
of the account’s own apps; another id is 404 app_not_found).
Get a submission
GET /api/v1/submissions/{public_id}
Read a submission’s log
GET /api/v1/submissions/{public_id}/log
{
"object": "submission_log",
"submission": "sub_4k2m9q7x1d",
"content": "Uploading app-release.aab\nReleased to Internal testing\n",
"offset": 55,
"status": "succeeded",
"livemode": false
}
content is the log from offset (in characters; default 0, the whole log). Send the
answer’s offset back to read only what was added since, while status is queued or
running.
A submission of another account, of your own organization, or an unknown id is 404 submission_not_found on every one of these.
Submission events
When a submission reaches an outcome, VibeView sends one event, with the submission object
as data.object:
| Event | When |
|---|---|
submission.succeeded | The store took it (status succeeded). |
submission.failed | It failed (status failed). |
submission.needs_action | The store waits for the developer account’s owner (status needs_action, with needs_action_reason). TestFlight only. |
submission.cancelled | You cancelled a TestFlight submission while its upload waited (status cancelled): VibeView’s work on it stopped. Sent once. |
Each outcome is sent once. A submission that later reaches another outcome sends that one too. VibeView sends nothing about an account’s submissions to anyone else: no email and no notice to a person.