An account can have apps of its own. This page covers registering an account’s app before it has any binary, the app’s build numbers, the Android keystores and Apple certificates its builds are signed with, the account’s build variables, starting a build from a template or from the account’s own source, then reading, downloading and cancelling the account’s builds.
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). The scopes
builds:read, builds:write, signing:metadata and signing:write need a contract with the
builds capability; apps:write is allowed by a contract with sessions, embedding or builds.
Register an app
Register each of the account’s apps once, before its first build. You name the app with your own key, one app per key and platform, and give its package name (or, for an iOS or Apple TV app, its bundle id) as its store listing has it.
curl -X PUT https://vibeview.io/api/v1/apps/by-external-key/shop-42/android \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-H "Content-Type: application/json" \
-d '{"package_name": "com.example.shop42", "name": "Shop 42", "initial_build_number": 100000042}'
Scope apps:write. The path names your key of the app (1 to 160 letters, digits, ., _, :
or -, starting with a letter or a digit) and its platform: android, androidtv, ios or
tvos.
Another platform, or a key outside those characters, is 422 invalid_request with field
platform or key. Keys are case-sensitive: Shop-42 and shop-42 are two apps. A key
cannot hold /: such a path is another path, answered 404 not_found.
| Member | Meaning |
|---|---|
package_name | Required. On android and androidtv, the app’s package name (Android application id): at least two parts separated by dots, each starting with a letter, letters, digits and _ only, at most 255 characters. On ios and tvos, its bundle id: at least two parts separated by dots, letters, digits and - only (no _), at most 155 characters. Another value is 422 invalid_request naming the platform’s rule. |
name | Required. The app’s name, 1 to 200 characters. |
initial_build_number | Optional. The build number the app’s next automatically numbered build gets at least (1 to 2147483647). Without it, the app’s automatically numbered builds start at 1: VibeView does not read the store’s build numbers (App Store Connect or Google Play), so for an app already in the store set it above the store’s highest build number (version code). It raises the app’s build number and never lowers it (see Build numbers). |
The answer is the app (see Apps in accounts), with access
own, your key as external_app_key and registered, when it was registered:
{
"object": "app",
"id": "Hq7tWc2xLp",
"name": "Shop 42",
"platform": "android",
"package_name": "com.example.shop42",
"external_app_key": "shop-42",
"access": "own",
"registered": 1764072000,
"livemode": false,
"created": 1764072000
}
- The first registration of a key and platform answers
201and sendsapp.registered. - A repeat answers
200with the same app, itsnameandpackage_nameset to the values you send. So the call is safe to repeat after a timeout; it also takes anIdempotency-Key. - The same key on another platform is another app (Android and Android TV are registered separately, and so are iOS and Apple TV, even with one bundle id).
- The package can change only while the app has no stored binary (an upload or a build’s
output), no build in progress and no successful production build. After that, a different
package_nameis409 package_name_locked; repeat the call with the registered one to change only the name. Register an app with its final package name before its first build. - A build of any app of the account, production or simulator, registered or uploaded, fails
when the package it makes is not the app’s
package_name(for an iOS or Apple TV build, its bundle id), compared exactly:Com.Example.Appis notcom.example.app. - A package the account’s app rules do not allow is
403 app_blocked(fieldpackage_name), and no app is created. - While another request is changing the same app (a build being created, another
registration), the call can answer
503 busy: retry afterRetry-After. - Keys are per account: another account can register the same key and gets its own app. An app your organization shares with your partner is never one of the account’s registered apps, even when it was uploaded with the same key.
Find a registered app by your key: GET /api/v1/apps/?external_app_key=shop-42 lists the
account’s own apps registered with that key, one per platform.
Build numbers
Each app keeps a build number per platform: the last number given to one of its builds. A build
that asks for automatic numbering gets the next one. Android and Android TV builds of an app
may each have their own; an iOS app and an Apple TV app each have their own. For an app
already on the App Store, register it with initial_build_number above its last App Store
build number: VibeView does not read it from App Store Connect.
List an app’s build numbers
curl https://vibeview.io/api/v1/apps/Hq7tWc2xLp/versions \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
Scope builds:read. One per platform that has one, by platform: limit (1 to 100, default
10) and starting_after (a platform from the previous page; one the app has no build number
for is 404 app_version_not_found).
{
"object": "list",
"data": [
{
"object": "app_version",
"platform": "android",
"build_number": 100000041,
"updated": 1764072000,
"livemode": false
}
],
"has_more": false
}
| Member | Meaning |
|---|---|
platform | The platform the number is for. New values may appear. |
build_number | The last number given out: the next automatically numbered build gets one more. |
updated | When it last changed, in unix seconds. |
livemode | true for your live partner, false for your test partner. |
An app the account does not own (another account’s, or one shared with your partner) is
404 app_not_found.
Set an app’s build number
curl -X PUT https://vibeview.io/api/v1/apps/Hq7tWc2xLp/versions/android \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-H "Content-Type: application/json" \
-d '{"build_number": 100000050}'
Scope builds:write. build_number (0 to 2147483646) is the last number given out: the next
automatically numbered build gets build_number plus one, and 0 starts over. The platform is
the app’s own, or the other one of its store (android and androidtv, ios and tvos); another is
422 invalid_request with field platform. The answer is the build number as set. It takes
no Idempotency-Key, and a repeat writes the value again: if a build took a number between the
two calls, the repeat sets the counter back and the next build gets that number a second time.
After a failed call, read the build numbers before you set one again.
Signing
An account keeps its own signing credentials: the Android upload keystores its production builds will be signed with (Android and Android TV builds use the same keystore), and the Apple distribution certificates of its iOS and tvOS apps (see iOS and Apple TV). A credential is for one of the account’s own apps, or, for a keystore, for every app of the account that has none of its own. For each app you can upload what the app already uses, or have VibeView generate it. The app’s platform decides the kind.
Every credential has an id (sgc_ and 16 hex characters). VibeView never returns a keystore,
a certificate, a profile or a password to your server, and never repeats one in an error.
Upload a keystore
For an app already on Google Play, upload the upload keystore it is signed with, as
multipart/form-data:
curl -X POST https://vibeview.io/api/v1/signing-credentials/ \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-F "name=release" \
-F "app=Hq7tWc2xLp" \
-F "store_password=$STOREPASS" \
-F "key_password=$KEYPASS" \
-F "key_alias=upload" \
-F "file=@upload-keystore.p12"
Scope signing:write.
| Member | Meaning |
|---|---|
name | Required. The credential’s name, 1 to 256 characters. |
app | Optional. The id of one of the account’s own Android or Android TV apps. Without it, the credential is for every app of the account. |
file | Required. The keystore file in PKCS#12 format, at most 256 KB. |
store_password | Required. The keystore’s password: at least 8 characters, no line break. |
key_password | Required. For a PKCS#12 keystore, the store password again (PKCS#12 has one password for the store and its key). |
key_alias | Required. The key’s alias in the keystore. |
The answer is the signing credential, 201 for a new name:
{
"object": "signing_credential",
"id": "sgc_5d0c8e2f9a7b1346",
"app": "Hq7tWc2xLp",
"platform": "android",
"kind": "android_keystore",
"name": "release",
"fingerprint": "cert-sha256:9f2c4e...",
"generated": false,
"exported": false,
"created": 1764072000,
"livemode": false
}
| Member | Meaning |
|---|---|
app | The app it signs, or null for every app of the account without a credential of its own. |
platform | android (also used for Android TV builds). New values may appear. |
kind | android_keystore. New values may appear. |
fingerprint | The SHA-256 of the keystore’s certificate as cert-sha256:<hex>, the value keytool -list -v prints. A credential you upload or generate through this API always has one. Other forms may appear for a credential stored another way (file-sha256:<hex>, the SHA-256 of a file VibeView could not open, or null). |
generated | true when VibeView made the keystore (see below). |
exported | true when a person of your organization has exported the generated keystore since it was made. Always false for a keystore you uploaded: you already hold it. |
created | When it was stored, in unix seconds. |
-
Uploading under a name the scope already has (the same
app, or both without one) replaces that credential’s keystore and passwords: the answer is200with the sameid. So the call is safe to repeat; with anIdempotency-Key, a repeat of the same upload (the same members and the same file) also replays the first answer. -
422 invalid_requestfor a password under 8 characters (fieldnames it). -
A PKCS#12 keystore (what
keytoolmakes by default) is opened before it is stored: it must open withstore_password,key_passwordmust be that same password, it must hold exactly one key entry, whose alias iskey_alias(compared ignoring case, as keytool does), and its certificate must be valid until at least 22 October 2033 (Google Play refuses an app signed with a certificate that ends earlier). A keystore whose key-derivation iteration count is above 5,000,000 never opens in Java’s tools and is refused unopened; one that takes more than a few seconds to open is refused too (export it again withkeytool). A keystore that fails one of these, a password with a line break or a file over 256 KB is422 signing_credential_invalid, withfieldnaming the member at fault. -
A keystore made with
openssl pkcs12 -exportmust name its key: add-name <alias>(or export it again withkeytool). A keystore holding several keys (a debug and a release key, say) must be split first, keeping only the upload key:keytool -importkeystore -srckeystore all-keys.p12 -destkeystore upload.p12 -srcalias <alias> -deststoretype PKCS12 -
Only PKCS#12 keystores are accepted here. A JKS or JCEKS keystore (an older
keytooldefault) is422 signing_credential_invalidwithfieldfile: convert it first, then upload the.p12file:keytool -importkeystore -srckeystore upload-keystore.jks -destkeystore upload-keystore.p12 -deststoretype PKCS12 -
A new name in a scope that already holds 50 credentials is
422 signing_credential_invalid(nofield); it passes once you delete one. -
A name the scope already uses for another kind of credential is
409 signing_credential_exists: an upload replaces only a credential of its own kind. -
confirm_signing_material_loss=true(a query parameter) replaces a generated keystore that nobody exported (see A generated keystore nobody exported). -
An
appthe account does not own (another account’s, or one shared with your partner) is404 app_not_found; an app of another platform is422 invalid_requestwithfieldapp.
Generate a keystore
For an app that is not on Google Play yet, VibeView can make its upload keystore (a 2048-bit RSA key, valid for 25 years):
curl -X POST https://vibeview.io/api/v1/signing-credentials/generate \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-H "Idempotency-Key: generate-shop-42" \
-H "Content-Type: application/json" \
-d '{"name": "release", "app": "Hq7tWc2xLp"}'
Scope signing:write. name is required (1 to 256 characters); app is optional, as for an
upload. The answer is 201 with the signing credential, generated true and exported
false. It never holds the keystore or its passwords.
- Send an
Idempotency-Key: a retry with it replays the first answer and never makes a second keystore. - Generating never replaces a credential: a name the scope already has is
409 signing_credential_exists(fieldname); choose another name, or delete that credential first. While another request is creating a credential of that name, the answer is409 signing_credential_busy: retry afterRetry-Afterto see the outcome. - A scope that already holds 50 credentials is
422 signing_credential_invalid; anappas for an upload (404 app_not_found, or422 invalid_requestfor an app of another platform). - Only a person of your organization with the partner admin permission can export the keystore
and its passwords, after confirming their sign-in: your server never can. They do it in the
dashboard: on the Partner page, under Accounts, open the account, and under
Signing credentials choose Export next to the keystore. The keystore file then has its own Save
button, and its passwords are shown once, each with a copy button; the window closes only
with Done, once each file was saved. To see the passwords again, export again. People
with the partner operator permission see which keystores exist and whether each was
exported, but cannot export. Export before the app’s first upload to Google Play. Google Play then accepts updates of the app only from that upload key, and replacing a lost upload key means asking Google Play support to reset it. After an export,
exportedistrueand you receivesigning_material.exported.
List signing credentials
curl https://vibeview.io/api/v1/signing-credentials/ \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
Scope signing:metadata. The account’s credentials, newest first: limit (1 to 100, default
10) and starting_after (a credential id from the previous page; another id is
404 signing_credential_not_found). Any other parameter is 422 invalid_request. The list
holds keystores and Apple certificates alike.
Delete a signing credential
curl -X DELETE https://vibeview.io/api/v1/signing-credentials/sgc_5d0c8e2f9a7b1346 \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
Scope signing:write. The answer is {"object": "signing_credential", "id": "sgc_...", "deleted": true}.
Any other id (of any form), or a credential already deleted, is
404 signing_credential_not_found. It takes confirm_signing_material_loss too (below).
A generated keystore nobody exported
Once a generated keystore has signed a build, the build’s app may be on its way to Google
Play. Google Play then accepts updates of the app only from that upload key, and replacing a lost upload key means asking Google Play support to reset it. If nobody
has exported it, VibeView holds the only copy. Deleting that credential, or uploading over its
name, is then refused with 409 signing_material_not_exported; the error’s credentials names
it (id and name). Export it first, or send confirm_signing_material_loss=true as a query
parameter to proceed and lose that keystore for good. Deleting the account is refused the same
way (see Delete an account).
While a build that is starting uses a credential, deleting or replacing it can answer
503 busy: retry after Retry-After.
With an Idempotency-Key, a 409 signing_material_not_exported or a full scope is not kept:
after the keystore is exported (or a credential deleted), the same request with the same key
runs again, and the key may also be sent with ?confirm_signing_material_loss=true. Once a
request with the key has completed, any other request with it (another query included) is
422 idempotency_key_reused.
iOS and Apple TV
An iOS or tvOS app’s credential is an Apple distribution certificate with the app’s App Store provisioning profile. There are two ways to get one:
- Upload the customer’s own: the certificate’s
.p12(with its private key), its password and the app’s App Store profile. - Generate: VibeView makes them in the customer’s Apple team with the account’s App Store Connect key (see App Store Connect keys).
The iOS app and the tvOS app each need their own credential: their profiles differ. A production build of the app signs with its credential (see iOS and Apple TV builds).
Upload a certificate
curl -X POST https://vibeview.io/api/v1/signing-credentials/ \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-F "name=app-store" \
-F "app=Ios7tWc2xL" \
-F "p12_password=$P12PASS" \
-F "file=@distribution.p12" \
-F "profile=@App_Store.mobileprovision"
Scope signing:write.
| Member | Meaning |
|---|---|
name | Required. The credential’s name, 1 to 256 characters. |
app | Required. The id of one of the account’s own iOS or tvOS apps. |
file | Required. The distribution certificate’s .p12, with its private key, at most 256 KB. |
p12_password | Required. The .p12’s password: at least 8 characters, no line break. |
profile | Required. The app’s App Store provisioning profile (.mobileprovision), at most 256 KB. |
kind | Optional. ios_distribution; the app’s platform decides it anyway. |
VibeView checks both files before it stores them. The certificate must open with
p12_password, be an Apple distribution certificate and not have expired. The profile must be
an App Store profile (not development, ad hoc or in-house) for the app’s platform, include
that certificate, not have expired, and be for exactly the app’s bundle id (a wildcard profile
is refused). Anything else is 422 signing_credential_invalid with field naming file,
p12_password or profile. Uploading under a name the app already has replaces that
certificate (200, the same id).
Generate a certificate
curl -X POST https://vibeview.io/api/v1/signing-credentials/generate \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-H "Idempotency-Key: generate-shop-ios-1" \
-H "Content-Type: application/json" \
-d '{"name": "app-store", "app": "Ios7tWc2xL", "asc_key": "team"}'
Scopes signing:write and store_keys:write (it uses the account’s App Store Connect key in the
customer’s Apple team). app is required (an iOS or tvOS app); asc_key is the name of the
account’s App Store Connect key, and may be left out when the account has one key. The answer
is 201 with the credential, generated true. Your server never receives the files or the
password: a person with the partner admin permission exports them on the Partner page, as
for a keystore.
In the customer’s Apple account, a generate:
- registers the app’s bundle id if Apple does not know it yet, with no capabilities;
- makes one distribution certificate for the team and reuses it for the account’s other iOS and tvOS apps of that team (two accounts never share one, even in the same Apple team);
- makes a new App Store profile for the app.
A bundle id VibeView registers has no capabilities (push notifications, associated domains, app groups and the like). If the app needs some, enable them for the bundle id in the Apple Developer account, then generate (or generate again: a new profile carries them), or upload your own profile.
Generate reuses the team’s certificate only while it ends more than 30 days from now and Apple still holds it. Otherwise it makes a new one, which counts toward Apple’s limit; credentials that hold the old certificate keep it until you replace them.
While another generate of the account is making a certificate in the same Apple team, or for
about a minute after a generate whose certificate request Apple did not answer, the answer is
409 signing_credential_busy: retry after Retry-After (the SDK does). The retry reuses the
certificate the other generate made. A generate takes one of the account’s 10 store calls a minute
(see Rate limits).
VibeView revokes a certificate in the Apple account only in two cases: one it made in a generate that did not finish (so a retry never leaves one behind), and one you ask it to revoke when you delete the credential (below). Deleting a credential otherwise revokes nothing.
Apple allows a team only a few distribution certificates. When the team already has the most it
allows, the answer is 409 apple_certificate_limit: revoke a certificate the team no longer uses
in the Apple Developer account, or upload a certificate you already have. This can happen even
while the account holds a certificate of the team that ends within 30 days, since generate does
not reuse that one.
Expiry and revocation
An Apple certificate and its profile last about a year. Each ios_distribution credential carries
three dates, in unix seconds:
| Member | Meaning |
|---|---|
certificate_expires | When the certificate ends. |
profile_expires | When the profile ends (null when VibeView could not read it). |
expires | The earlier of the two: when the credential stops signing. |
When a certificate or profile is about to expire, VibeView sends the event
credential.expiring twice: 30 days and 7 days before expires (see
Event types). Before expires, upload a new certificate
and profile under the same name, or delete the credential and generate again (in the last 30
days, generate makes a new certificate). New material starts the notices again. After
expires, the app’s production builds are refused with 409 signing_not_ready.
If someone revokes the certificate in the Apple account, the credential no longer signs: replace it the same way; a generate then makes a new certificate.
Delete and revoke
Apple allows a team only a few distribution certificates, and a deleted credential’s private key
is gone, so generate, delete, generate again leaves the old certificate in the team. To free it,
delete with revoke_certificate=true:
curl -X DELETE "https://vibeview.io/api/v1/signing-credentials/sgc_5d0c8e2f9a7b1346?revoke_certificate=true" \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
VibeView first revokes the certificate in the Apple team, then deletes the credential. It needs
store_keys:write as well as signing:write, since it uses the account’s App Store Connect key.
It applies
only to a certificate VibeView generated that was never exported and that no other credential
holds, in this account or another of your accounts (otherwise 422 invalid_request). While a
build may sign with it, the answer is 503 busy. It takes one of the account’s store calls. If
Apple does not answer, nothing is deleted: try again. An exported certificate may be in use
outside VibeView: revoke it in the Apple Developer account instead.
| Message | What to do |
|---|---|
p12_password does not open the .p12 file | Send the password the .p12 was exported with. |
p12_password: String should have at least 8 characters | Export the .p12 again with a longer password (Keychain Access, or openssl pkcs12 -export). |
file holds no private key | Export the certificate together with its private key from Keychain Access. |
file takes too long to open | Export the .p12 again from Keychain Access (its default settings open in well under a second). |
busy (503) | Other signing files are being checked. Retry after Retry-After. |
profile is not an App Store profile | Download the app’s App Store profile, not a development or ad hoc one. |
profile does not include the uploaded certificate | Make the profile with this certificate, or upload the certificate the profile names. |
profile is not for the app's bundle id | Use the profile made for this app’s bundle id. |
store_key_required | Upload an App Store Connect key, or name one with asc_key. |
store_key_invalid | Replace the account’s App Store Connect key (the message says why), then generate again. |
apple_certificate_limit | Revoke an unused distribution certificate in the Apple Developer account, or upload one. |
store_unavailable | Apple did not answer; nothing was stored. Try again: a certificate a failed generate made is revoked before the next one is made. |
signing_credential_busy | Another generate is making the team’s certificate. Retry after Retry-After. |
Build variables
Build variables are the values and files an account’s builds get, as environment variables:
an API address, a registry token, a google-services.json. Each is set for the whole account
or for one of its own apps, and for every build profile or one. A build gets the account’s
variables, then its app’s (an app’s variable replaces the account’s of the same name), and in
each scope a profile’s own variable replaces the every-profile one.
A value is never returned once it is set, by any call; neither is a file. For a plain or
sensitive value, hint shows its last 4 characters (when it has 5 or more), so you can tell
two values apart; a secret has no hint. sensitive and secret values are masked in build
logs.
Set a build variable
curl -X POST https://vibeview.io/api/v1/build-env/ \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-H "Content-Type: application/json" \
-d '{"name": "API_URL", "value": "https://api.example.com", "visibility": "plain", "app": "Hq7tWc2xLp"}'
A file goes as multipart/form-data, with the same members as form fields and the file as
file:
curl -X POST https://vibeview.io/api/v1/build-env/ \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-F name=GOOGLE_SERVICES_JSON -F visibility=secret -F app=Hq7tWc2xLp \
-F file=@google-services.json
Scope builds:write.
| Member | Meaning |
|---|---|
name | Required. A letter or _, then letters, digits or _; at most 256 characters. Not an Xcode signing or toolchain name (the iOS and Apple TV builds list): 422 invalid_request, field: name. |
visibility | Required. plain, sensitive or secret. |
value | The value, at most 10 KB. Send value or file, not both. |
file | A file instead of a value (multipart/form-data only): at most 64 KB for a variable of the whole account, 5 MB for one set on an app. The build gets the file’s path in the variable. |
app | Optional. One of the account’s own apps (its id): the variable is set for that app’s builds only. Without it, for every build of the account. |
profile | Optional. A build profile name (lowercase letters, digits and -, starting with a letter, at most 32 characters): the variable is set for builds of that profile only. Without it, for every profile. |
The answer is the variable:
{
"object": "build_variable",
"id": "bvar_3f9a1c2e7b6d4058",
"name": "API_URL",
"app": "Hq7tWc2xLp",
"profile": null,
"visibility": "plain",
"is_file": false,
"filename": null,
"size": null,
"hint": ".com",
"created": 1764072000,
"updated": 1764072000,
"livemode": false
}
| Member | Meaning |
|---|---|
id | The variable’s id (bvar_ and 16 hex characters). |
app | The app it is set on, or null for every build of the account. |
profile | The build profile it is set for, or null for every profile. |
is_file, filename, size | Whether it is a file, its name, and its size in bytes (null for a value). |
hint | The last 4 characters of a plain or sensitive value of 5 characters or more; otherwise null. Never for a secret or a file. |
created, updated | Unix seconds. |
livemode | true for your live partner, false for your test partner. |
- A variable is set by name and scope (account or app, and profile). A name the scope already
has is replaced in place: the answer is
200with the same id. A new name answers201. So the call is safe to repeat after a timeout; it also takes anIdempotency-Key. - A scope holds at most 100 variables per profile, and an app at most 10 files over 64 KB:
past that,
409 variable_limit_reached. A file over its scope’s limit is413 file_too_large. - A file over 64 KB counts toward the account’s storage: past its limit,
403 storage_limit_reached. While another request stores a large file in the account, the call can answer503 busy: retry afterRetry-After. - An app the account does not own (another account’s, or one shared with your partner) is
404 app_not_found. - A request that fails validation is
422 invalid_requestnaming the member. The error never repeats what you sent, so a value never reaches your logs through it.
List build variables
curl "https://vibeview.io/api/v1/build-env/?app=Hq7tWc2xLp" \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
Scope builds:read. The account’s variables, newest first. With app, only the variables set
on that app; without it, every variable of the account. limit (1 to 100, default 10) and
starting_after (a variable id from the previous page; any other id is
404 variable_not_found).
Edit a build variable
curl -X PATCH https://vibeview.io/api/v1/build-env/bvar_3f9a1c2e7b6d4058 \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-H "Content-Type: application/json" \
-d '{"value": "https://api2.example.com"}'
Scope builds:write. value and visibility, either or both. A secret becomes plain or
sensitive only with a new value: its value is never revealed. A file cannot be edited: set
it again by name. Both are 422 invalid_request with field value. The answer is the
variable.
Delete a build variable
curl -X DELETE https://vibeview.io/api/v1/build-env/bvar_3f9a1c2e7b6d4058 \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
Scope builds:write. Builds that start afterwards do not get it. The answer is
{"object": "build_variable", "id": "bvar_3f9a1c2e7b6d4058", "deleted": true}; a variable
that is not the account’s, or already deleted, is 404 variable_not_found.
Builds
Every build of the account has an id: an opaque string, compare it only for equality. A build
of another account, or any other id, is 404 build_not_found on every route below.
Start a build from a template
An account’s app is built from a build template: your project, published on the Partner page as revisions, and shared with your partner. A build names the account’s app and one revision; the account’s own variables and keystore make the build theirs.
curl -X POST https://vibeview.io/api/v1/builds/from-template \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-H 'Idempotency-Key: 6f1d2c94-1b7e-4c55-9a0e-3f8b2d7c41aa' \
-H "Content-Type: application/json" \
-d '{"app": "Hq7tWc2xLp", "source": {"template": "tpl_3f9a2c7d1e4b6a58", "revision": "9b0e6f2d4c8a1e3b5d7f9a1c3e5b7d9f1a3c5e7b9d1f3a5c7e9b1d3f5a7c9e1b"}, "env": {"BRAND_ID": "acme"}}'
Scope builds:write. The answer is 201 with the build, queued (see
Get a build).
| Body | |
|---|---|
app | Required. One of the account’s own apps. Its platform picks the revision’s platform entry: android, androidtv, ios or tvos. An app shared with your partner, or any other id, is 404 app_not_found; a revision with no entry for the app’s platform is 422 invalid_request (field: app). |
source | Required. template, the template’s id, and revision, the revision’s id as the publish answer or the Partner page gives it. There is no “latest”: a build always names its revision. A template not shared with your partner (or deleted) is 404 template_not_found; a revision the template does not have, 404 template_revision_not_found. |
env | Optional. Values for this build only, by name. Each name must be one the revision declares in its variables; another is 422 invalid_request with field env.<NAME>. At most 50 names, 10 KB a value and 64 KB together (422 invalid_request). |
time_limit_s | Optional. This build’s time limit in seconds: at least 60, and at most the limit it gets without it (see below). Out of range: 422 invalid_request (field: time_limit_s), whose message names the maximum. It is part of the request, so another time_limit_s with the same Idempotency-Key is 422 idempotency_key_reused. |
submit | Optional. Send the build to Google Play, or an iOS or Apple TV build to TestFlight, once it succeeds (see Send it to Google Play when it succeeds). Only for a production entry: with a simulator entry it is 422 invalid_request (field: submit). |
What a build makes
Each platform entry of a revision’s manifest names its distribution, and that decides what
the account’s build makes:
production: a signed file for a store (an.aabor.apk; for an iOS or Apple TV app an.ipa). It is the build’sartifact(see Download a build’s artifact); a session cannot run it. It needs a keystore of the account (an iOS or Apple TV app: the app’s Apple certificate), and it can be sent to Google Play or TestFlight (submit).simulator: an.apk(for an iOS or Apple TV app, a simulator.app, which VibeView zips) a session can run. It becomes a new build of the app (see Apps in accounts), withsourcebuild, andapp.uploadedis sent for it (itsbuildnames the oldest build that succeeded with the file, or, when none has yet, this build; see that page for whatbuildshows later). The build’sapp_buildnames it once the build succeeded, and itsartifactstaysnull. It is never signed, needs no keystore, takes nosubmitand gets no automatic build number (only production builds are numbered). Its file counts toward the account’s storage, once, and expires under the account’s build retention like an uploaded build. A session can start on it as on any build of the app, by the app or by the app build’s id (see Sessions).
A revision may give one platform a production entry and the other a simulator entry (for
example Android phones a production build for Google Play, Android TV a simulator build to try
in sessions). You choose the distribution of each entry in the manifest when you publish the
revision on the Partner page.
A simulator build’s output must be the app it was started for: when its package (or bundle id)
is not the app’s package_name, the build fails with failure_reason package_mismatch and nothing is
stored (no app and no app build is made). An output VibeView does not allow fails the build
with failure_reason app_blocked, and nothing is stored. Either way the build ran, so its
minutes count.
What the build gets. First every variable of the template; then, for each name the
revision declares, the account’s variable, the app’s variable, and the request’s env value,
each replacing the one before. When the revision’s platform entry names a profile, the
account’s and the app’s variables of that profile replace their every-profile ones, as for
any build. A name the revision does not declare gets no value from the account or the
request. A refusal of an undeclared name tells you which names the revision
does not declare: names only, never a value. env values are never returned, are kept only for
the build, and are masked in its log when 8 characters or longer. A secret or sensitive
template variable is masked too; a plain one is not.
Files. Every file variable of a build is written into one folder under its file name. A
template’s files keep their names; an account’s file with the same name as one before it
(compared ignoring case) gets -2, -3, … added. Read a file only through its variable’s
path, never by a fixed name.
Treat declared values as untrusted input. A declared name receives what an account (or
your server, for it) sets. In your template, never put such a value in a shell string, a URL’s
host or a tool option: pass it as data. Some names can never be declared, because tools read
them to change what runs: names starting with LD_, DYLD_, NODE_, JAVA_, JDK_,
GRADLE_, ANDROID_, PYTHON, PERL, RUBY, GEM_, BUNDLE_, RBENV_, MAKE, GYP_,
OPENSSL_, XDG_, NPM_CONFIG_, YARN_, PNPM_, COREPACK_, GIT_, SSH_, VIBEVIEW_,
ORG_GRADLE_PROJECT_, CODE_SIGN_, PROVISIONING_PROFILE, EXPANDED_CODE_SIGN_IDENTITY and
CODE_SIGNING_, and PATH, HOME, SHELL, IFS, ENV, BASH_ENV, PROMPT_COMMAND, PS4, CDPATH,
TMPDIR, _JAVA_OPTIONS, CLASSPATH, CC, CXX, CPP, LD, AR, AS, CFLAGS,
CXXFLAGS, CPPFLAGS, LDFLAGS, GCONV_PATH, LOCPATH, HTTP_PROXY, HTTPS_PROXY,
ALL_PROXY, NO_PROXY, SSL_CERT_FILE, SSL_CERT_DIR, CI, DEVELOPER_DIR, SDKROOT,
TOOLCHAINS, DEVELOPMENT_TEAM, XCODE_XCCONFIG_FILE and OTHER_CODE_SIGN_FLAGS,
in any case. Set one of those as a template variable instead. The list only grows: a revision
published before a name joined it keeps building, and is refused (422 invalid_request
naming it) only when that name would receive a value.
Before it is queued. A production build needs a keystore of the account that can sign it,
for the app or the whole account, or for an iOS or Apple TV app the app’s Apple certificate
(409 signing_not_ready, field: app; the message says what is missing). An app VibeView does
not allow is 403 app_blocked. The account’s build minutes left this period must
cover it (403 build_minutes_exhausted), its storage must have room
(403 storage_limit_reached), and the files its variables give it are at most 25 MB together
(422 invalid_request). When no builder that can run it is online, the answer is
503 build_capacity_offline (retry after Retry-After) or, when none is available at all,
503 build_capacity_unavailable; while VibeView has cloud builds switched off,
503 builds_unavailable. None of these queues a build or counts a minute.
A build runs for at most the account’s build_time_limit_s (your contract’s, unless you gave
the account a lower one in its limits); a production build gets 20 minutes more. Send
time_limit_s to give one build a shorter limit. Past its limit, it ends failed with
failure_reason timeout. The build’s time_limit_s shows the limit it has. A shorter limit
does not change what is held for a build while it waits: its minutes are counted as it runs.
Retries. Send an Idempotency-Key: a retry with the same key and body answers the first
build again and never queues a second one; another body with the same key is
422 idempotency_key_reused. A refusal that may pass (a signing credential, minutes, storage,
builders, a Google Play key) is not kept, so the same key runs again once it is fixed. While
VibeView is being updated this route may, for a few minutes, answer 405 (unspecified):
nothing was queued.
An immediate retry may get the same answer: wait about a minute, then retry with the same
Idempotency-Key. With the server SDK, pass your own
idempotencyKey to reuse a key: the SDK makes a new one for each call, and does not retry a
405 itself.
Send it to Google Play when it succeeds
submit takes the members of POST /api/v1/submissions except
build, with the same rules:
track (required), play_key, release_status, rollout, release_notes and
changes_not_sent_for_review. For example
"submit": {"track": "internal", "play_key": "release"}. Asking for it needs the scope
submissions:write as well as builds:write (403 insufficient_scope, field: submit,
required_scope: submissions:write) and a contract with submissions
(403 capability_disabled). Before the build is queued, VibeView also checks that the account
may publish now, that an account of a test partner names the internal track
(403 submission_not_allowed_on_test, field: submit.track), and that the account has the
Google Play key the submission would use: a play_key the account has no key of is
404 store_key_not_found (field: submit.play_key); with no play_key, an account with no
key, or with several and none named play, is 409 store_key_required. None of these queues a
build, and the two key refusals are not kept for an Idempotency-Key.
For an iOS or Apple TV app, submit takes the TestFlight members instead (see
TestFlight): "submit": {"store": "app_store", "asc_key": "team", "beta_groups": ["QA"]}. Creating the build never asks App Store Connect: the key is checked by
its name and the group names only for their form (a group named twice is 422 invalid_request).
The groups are looked up when the upload starts, so a group problem (an unknown group, an external
group for a test partner, external groups without What to Test) shows up on the submission, as
its failure_reason, not on the build create.
When the build succeeds, VibeView makes the submission on your partner’s authority, whichever key or token asked for the build: revoking that credential afterwards changes nothing. It is not sent if, by then, the account cannot act or your contract no longer has submissions: the build gets a failed submission saying why. The key is looked up by its name again when the upload starts, so a key replaced under the same name uploads it. A build that does not succeed is never sent.
The build’s submit shows how it went (see Get a build). Its build.succeeded
event carries submit.status pending; the result arrives as the submission’s own
submission.succeeded or submission.failed event (see
Publishing to stores), or on a read of the build, where status is then
sent or refused and submission names the submission. A build that ends otherwise carries
skipped in its build.failed or build.cancelled event. A submission you send yourself with
POST /api/v1/submissions after the build succeeds and before VibeView sends it counts as the
one sent: submission names yours. If a build succeeded and a read of it shows skipped
(it could not be sent within a day), send it yourself with POST /api/v1/submissions.
Start a build from your own source
When your customer’s app is their own project rather than one of your templates, send the project itself: a build of one of the account’s own apps from a gzip-compressed tar archive of the project, signed with the account’s own keystore.
curl -X POST https://vibeview.io/api/v1/builds/from-source \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062' \
-H 'Idempotency-Key: 0c9f4d1e-7a2b-4c58-9e3d-1f6a8b2c4d70' \
-F 'source=@project.tar.gz' \
-F 'app=Hq7tWc2xLp' \
-F 'command=./gradlew bundleRelease' \
-F 'artifact_path=app/build/outputs/bundle/release/app-release.aab' \
-F 'distribution=production' \
-F 'auto_increment=true' \
-F 'env={"API_URL": "https://api.acme.example"}'
Scope builds:write. The request is multipart/form-data: the archive as the source file,
every other member a form field. The answer is 201 with the build, queued (see
Get a build); its source is {"type": "upload", "template": null, "revision": null}.
| Form field | |
|---|---|
source | Required. The project: a gzip-compressed tar archive (.tar.gz, .tgz), its top level the project’s root. The whole request is at most 500 MB; a larger one is 413 file_too_large (field: source; see Error codes). A file that is not gzip-compressed is 422 invalid_request (field: source). An archive VibeView cannot read is not refused at the request: its build ends failed with failure_reason build_error and counts like any failed build. |
app | Required. One of the account’s own apps; the build’s platform is the app’s: Android, Android TV, iOS or Apple TV (another is 422 invalid_request, field: app). An app shared with your partner, or any other id, is 404 app_not_found. An app registered without a binary can get its first build this way, as an app made by an upload can. |
command | Required. The command that builds the app, run at the archive’s top level, for example ./gradlew bundleRelease. |
artifact_path | Required. Where command leaves the file, relative to the archive’s top level. |
distribution | Required. production or simulator, as for a template entry (see What a build makes). |
node | Optional. The Node.js major version to build with, for example 22. One VibeView does not offer is 422 invalid_request (field: node). |
xcode | Optional, iOS and Apple TV apps only. The Xcode version to build with, for example 26.5; without it, the builders’ default. One VibeView does not offer, or xcode for an Android app, is 422 invalid_request (field: xcode), naming the versions offered. |
profile | Optional. A build profile name: the account’s and the app’s variables of that profile replace their every-profile ones. |
auto_increment | Optional. true: a production build gets the app’s next build number (see Build numbers). |
time_limit_s | Optional. This build’s time limit in seconds, as for a template build. |
env | Optional. A JSON object of values for this build only, by name. Any valid variable name (letters, digits and _, not starting with a digit) that VibeView does not reserve (the list under What the build gets): a reserved name is 422 invalid_request with field env.<NAME>. At most 50 names, 10 KB a value and 64 KB together. |
submit | Optional. A JSON object: send the build to Google Play, or an iOS or Apple TV build to TestFlight, once it succeeds, exactly as a template build’s submit (see Send it to Google Play when it succeeds). Only with production. |
Any other field is 422 invalid_request naming it. A refusal never repeats a value you sent.
What runs. VibeView unpacks the archive on a builder of the app’s platform and runs
command at its top level, with the account’s and the app’s build variables
(no template’s), then the request’s env values over them. env values are never returned,
are kept only for the build, and are masked in its log when 8 characters or longer. Your
customer’s project runs with only the account’s own variables and signing material.
What it makes. A production build is signed with the account’s keystore, for the app or
the whole account, or for an iOS or Apple TV app with the app’s Apple certificate
(409 signing_not_ready without a usable one): its file is the build’s artifact, and for an
Android app submit can send it to Google Play (for an iOS or Apple TV app, to TestFlight). A simulator build makes an .apk (or a
simulator .app) that becomes a new build of the app, for sessions, with app.uploaded sent
for it; it is never signed. Either way the package it makes must be the app’s package_name:
another fails the build with failure_reason package_mismatch, and nothing is stored.
Before it is queued, and the time limit: as for a template build (build minutes, storage, the 25 MB of files, builders, the kill switch; see above). None of the refusals queues a build or counts a minute, and the archive is not kept.
The archive does not count toward the account’s storage and is removed once the build ends. It is unpacked as it is, links included. Leave out what the build makes again (the node_modules folder, build outputs, caches): they are not refused, but they make the upload larger and the build slower.
Retries. Send an Idempotency-Key. A retry with the same key, the same fields and the same
file answers the first build again and never queues a second one; the same key with another
field or another file is 422 idempotency_key_reused. The archive is compared by its
contents, so a retry may send it under a new form boundary or file name. A refusal that may
pass is not kept, as for a template build, and so is the 405 this route may answer for a
few minutes while VibeView is being updated (nothing was queued: retry after about a minute
with the same key). With the server SDK, builds.createFromSource waits 10 minutes by
default.
iOS and Apple TV builds
An account’s iOS and Apple TV apps build the same two ways, on VibeView’s Mac builders: from a
template revision with an ios or tvos entry, or from the account’s own project.
- A template entry takes the same members as an Android one, plus
xcode(the Xcode version, for example"26.5"; without it, the builders’ default). Each Apple platform needs its own entry. - An own-source build sends
xcodeas a form field the same way. productionmakes a signed.ipa, the build’sartifact. It needs the app’s Apple certificate (see iOS and Apple TV), checked before the build is queued.simulatormakes a simulator.appthat becomes a new build of the app for sessions. Pointartifact_pathat the.app(VibeView zips it) or at a zip of it. It needs no certificate.- Minutes. iOS and Apple TV builds count the account’s Mac build minutes
(
build_minutes_mac_per_month), not its build minutes; running out of one never stops the other. The403 build_minutes_exhaustedsays which in itsunit:build_minutesorbuild_minutes_mac. - Your contract must include Mac builds: without it a new build is refused
(
403 capability_disabled,field: app, before the signing, builder and minutes checks), and a queued one is cancelled withfailure_reasoncapability_disabled. submitsends the build to TestFlight once it succeeds (see TestFlight).
What a production command must do. VibeView puts the app’s certificate in a keychain and
gives the command four values. The command archives with manual signing using
VIBEVIEW_DEVELOPMENT_TEAM, VIBEVIEW_PROVISIONING_PROFILE and VIBEVIEW_CODE_SIGN_IDENTITY,
then exports the archive with the options file at VIBEVIEW_EXPORT_OPTIONS_PLIST, and
artifact_path names the exported .ipa. For example (one entry; a CocoaPods project passes
only the identity, see App signing):
{
"command": "xcodebuild archive -workspace ios/App.xcworkspace -scheme App -configuration Release -archivePath build/App.xcarchive CODE_SIGN_STYLE=Manual ${VIBEVIEW_DEVELOPMENT_TEAM:+\"DEVELOPMENT_TEAM=$VIBEVIEW_DEVELOPMENT_TEAM\"} ${VIBEVIEW_PROVISIONING_PROFILE:+\"PROVISIONING_PROFILE_SPECIFIER=$VIBEVIEW_PROVISIONING_PROFILE\"} ${VIBEVIEW_CODE_SIGN_IDENTITY:+\"CODE_SIGN_IDENTITY=$VIBEVIEW_CODE_SIGN_IDENTITY\"} && xcodebuild -exportArchive -archivePath build/App.xcarchive -exportPath build -exportOptionsPlist \"$VIBEVIEW_EXPORT_OPTIONS_PLIST\"",
"artifact_path": "build/App.ipa",
"distribution": "production",
"xcode": "26.5"
}
A simulator entry builds for the simulator SDK and points at the .app, for example
"command": "xcodebuild build -workspace ios/App.xcworkspace -scheme App -configuration Debug -sdk iphonesimulator -derivedDataPath build"
with "artifact_path": "build/Build/Products/Debug-iphonesimulator/App.app" (an Apple TV app:
-sdk appletvsimulator and Debug-appletvsimulator).
The bundle id the build makes must be the app’s package_name, or the build fails with
failure_reason package_mismatch. A template must not declare, and env must not send,
names that change how Xcode signs or which Xcode runs: they are in the reserved list above
(CODE_SIGN_, CODE_SIGNING_, PROVISIONING_PROFILE, EXPANDED_CODE_SIGN_IDENTITY,
DEVELOPER_DIR, SDKROOT, TOOLCHAINS, DEVELOPMENT_TEAM, XCODE_XCCONFIG_FILE,
OTHER_CODE_SIGN_FLAGS). An account or app build variable cannot take one of those names, and
one stored before gets no value. Pass signing settings on the command line, as above.
| Message | What to do |
|---|---|
409 signing_not_ready: the app has no signing credential | Upload or generate the app’s Apple certificate, then build again. |
409 signing_not_ready: the certificate or provisioning profile expired | Upload or generate a new one for the app. |
409 signing_not_ready: the profile is for another bundle id | The app’s bundle id changed after the certificate was added: upload or generate one for the app’s bundle id. |
403 build_minutes_exhausted with unit build_minutes_mac | Give the account more Mac build minutes (its limits, or extra minutes for the period). |
403 capability_disabled | Your contract has no Mac builds: contact support@vibeview.io. |
422 invalid_request, field: xcode | Use one of the Xcode versions the message names. |
failure_reason package_mismatch | Build the app whose bundle id is the app’s package_name. |
List builds
curl "https://vibeview.io/api/v1/builds/?status=running" \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
Scope builds:read. The account’s builds, newest first: limit (1 to 100, default 10),
starting_after (a build id from the previous page; another id is 404 build_not_found),
app (only the builds of one of the account’s own apps; another id is 404 app_not_found)
and status (queued, running, succeeded, failed or cancelled). Any other parameter
is 422 invalid_request.
Get a build
curl https://vibeview.io/api/v1/builds/Rb4kT9wQxZ \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
Scope builds:read. The answer is the build:
{
"object": "build",
"id": "Rb4kT9wQxZ",
"app": "Hq7tWc2xLp",
"app_build": null,
"platform": "android",
"status": "succeeded",
"failure_reason": null,
"error_summary": null,
"source": {
"type": "template",
"template": "tpl_3f9a2c7d1e4b6a58",
"revision": "9c1e4f0b7a2d5e8c3f6a9b2d4e7c1a5f8b3d6e9c2a4f7b1d5e8c3a6f9b2d4e7c"
},
"build_number": 100000043,
"minutes": 9,
"minutes_over_limit": 0,
"period": {"start": 1764547200, "end": 1767225600},
"time_limit_s": 3000,
"artifact": {
"filename": "app-release.aab",
"size": 31457280,
"sha256": "5f2b8e1c9d4a7f3e6b0c2d8a1f5e9b3c7d4a0e6f2b8c1d5a9e3f7b0c4d6a2e8f",
"available": true
},
"signing_credential": "sgc_5d0c8e2f9a7b1346",
"submit": {
"track": "internal",
"play_key": "release",
"status": "sent",
"submission": "sub_4k2m9q7x1d",
"store": "play",
"asc_key": null
},
"created": 1764072000,
"started": 1764072010,
"finished": 1764072560,
"livemode": false
}
| Member | Meaning |
|---|---|
app | The id of the account’s app it built, or null once that app is deleted. |
app_build | The app build a simulator build made (its id: read it with GET /api/v1/app-builds/{id}, see Apps in accounts), set once the build succeeded; null for a production build, a build that made none, and once that app build is deleted. |
platform | The platform it built for. New values may appear. |
status | queued (waiting for a builder), running, succeeded, failed or cancelled. New values may appear. |
failure_reason | Why it did not succeed, or null (see below). New values may appear. |
error_summary | For a build VibeView stopped for one of the failure_reason values below other than build_error, timeout and internal: one sentence saying why (for package_mismatch, it names the package the build made and the app’s). Otherwise the end of its output when it failed, with every secret value masked, or null. |
source | What it was made from. type template: a build template, with the template’s id (template) and the revision’s id (revision); either id is null once your organization’s template behind it is gone. type upload: a project archive sent with the build (template and revision are null). null for a build made otherwise. |
build_number | The build number it was given, or null when it asked for none (see Build numbers). |
minutes | The build minutes it used: null while it is queued or running, 0 for a build that ended without running. |
minutes_over_limit | How many of minutes were past the account’s monthly build-minute limit and the extra build minutes of its period. |
period | The account period its minutes count in (start and end in unix seconds, end exclusive), or null while nothing is counted. |
time_limit_s | The longest it may run, in seconds: the time_limit_s it was started with, or else the account’s build_time_limit_s (plus 20 minutes for a production build). |
artifact | The file a successful production build made: filename, size in bytes and sha256 (each null when not known), and available (false once it expired or was deleted). null for any other build. |
signing_credential | The id of the account’s signing credential that signed it, or null (unsigned, or that credential was deleted). |
submit | The submission it asked for when it was created, or null when it asked for none: store (play or app_store), track and play_key as asked for Google Play (track is testflight and play_key null for TestFlight; play_key also null when none was named), asc_key as asked for TestFlight, status and submission. status is pending (the build has not finished, or it succeeded and is about to be sent), sent (submission is the id of the submission sent for it), refused (it could not be sent: submission is the failed submission saying why) or skipped (nothing was sent: the build did not succeed, or it could not be sent within a day of succeeding). submission is null while pending and when skipped. New status values may appear. |
created, started, finished | Unix seconds; started and finished are null until then. |
livemode | true for your live partner, false for your test partner. |
failure_reason is null while a build is queued or running, once it succeeded, and for a
build cancelled on request. Otherwise it is one of:
failure_reason | Meaning |
|---|---|
build_error | The build’s own command failed. Read error_summary and the log. |
timeout | It ran longer than its time limit. |
package_mismatch | The package it made is not the app’s package_name (production or simulator, whether the app was registered or uploaded). Nothing was stored; its minutes count. |
template_unavailable | Its build template is no longer shared with your partner. |
signing_not_ready | The account has no usable signing credential for it. |
storage_limit | The account has no storage left for its output. |
files_too_large | Its file variables together are larger than 25 MB. |
build_minutes_exhausted | It was cancelled before it started: the account had too few build minutes left this period. |
account_unavailable | It was cancelled because the account could no longer be used (suspended, or being deleted). |
app_blocked | The app it made is one VibeView does not allow to run (see Restricted apps). Nothing was stored. The build ran, so its minutes count. Change what the template builds for this app; building the same app again fails the same way. |
capability_disabled | An iOS or Apple TV build cancelled before it started: your contract no longer includes Mac builds. Nothing was charged. |
capacity_unavailable | No builder able to run it was available. Try again later. |
internal | It failed on VibeView’s side. Quote its id to support. |
New values may appear: treat an unknown one like build_error.
Read a build’s log
curl "https://vibeview.io/api/v1/builds/Rb4kT9wQxZ/logs?offset=0" \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
Scope builds:read. The log from offset (in characters, default 0), with every secret value
masked, the offset to send next time to read only what was added since, and the build’s
status:
{
"object": "build_log",
"build": "Rb4kT9wQxZ",
"content": "> Task :app:bundleRelease\n",
"offset": 2048,
"status": "running",
"livemode": false
}
Poll it every few seconds while status is queued or running. Send offset back as it
came: it is a position in everything the build logged, so on a very long log it can be larger
than the text a read from 0 returns.
Download a build’s artifact
curl -o app-release.aab https://vibeview.io/api/v1/builds/Rb4kT9wQxZ/artifact \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
Scope builds:read. The file a successful production build made, as
application/octet-stream, named by the Content-Disposition header. Its SHA-256 is the
build’s artifact.sha256. A build still queued or running is 409 build_not_finished: ask
again once it has succeeded (or wait for build.succeeded). A build that ended without a file
to download (it did not succeed, it made none, as a simulator build, or its file expired or
was deleted) is 410 artifact_unavailable. The file is kept as long as the account’s build
retention allows; you receive retention.expiring before it goes.
Cancel a build
curl -X POST https://vibeview.io/api/v1/builds/Rb4kT9wQxZ/cancel \
-H "Authorization: Bearer $VIBEVIEW_KEY" \
-H 'VibeView-Account: org_b4cc224dfd904062'
Scope builds:write. A queued or running build stops and the answer is the build,
cancelled. A running build’s minutes so far are counted; a queued one uses none. Cancelling
a build that is already cancelled returns it unchanged, so a repeat is safe; a build that
already ended otherwise is 409 build_not_cancellable. While another request holds the build,
503 busy: retry after Retry-After.
Build events
A build that a builder starts sends build.started (status running). Every build sends
exactly one of build.succeeded, build.failed or build.cancelled when it ends, including a
build that ends before a builder starts it: that one sends no build.started. data.object
is the build as GET /api/v1/builds/{public_id} returns it at that moment (see
Events and webhooks).
A build that ends before it starts sends only its end event:
| What happened | End event | failure_reason |
|---|---|---|
| It was cancelled on request while queued | build.cancelled | null |
| The account had too few build minutes left | build.cancelled | build_minutes_exhausted |
| The account could no longer be used (suspended, or being deleted) | build.cancelled | account_unavailable |
| The account had no storage left | build.cancelled | storage_limit |
| Its build template is no longer shared with your partner | build.cancelled | template_unavailable |
| Your contract no longer includes Mac builds (an iOS or Apple TV build) | build.cancelled | capability_disabled |
| The account has no usable signing credential for it | build.failed | signing_not_ready |
| Its file variables together are larger than 25 MB | build.failed | files_too_large |
| No builder able to run it was available | build.failed | capacity_unavailable |
| VibeView could not start it | build.failed | internal |