API: App builds
App builds: List devices, List builds, Get a build, Find a build, Create signed upload links, Import a build from a link, Get an upload, Start a build upload, Upload a build part, Complete a build upload, Delete a build.
List devices
The phones and tablets app tests can run on, and their OS versions (latest first). Pass device and osVersion to create_test, update_test, run_test or run_project. A new app test runs on a phone with the latest OS unless you choose otherwise; the version is saved with the test, so it keeps its OS until you change it.
Returns { devices: [{ platform, forms: [{ id, name }], defaultForm, versions: [{ id, name, latest, apiLevel? }] }] }
curl https://app.testsy.dev/api/v1/devices \
-H "Authorization: Bearer $TESTSY_AI_API_KEY"List builds
The app builds uploaded to a project (Android .apk, iOS Simulator .app zipped), newest first, with the largest size and part size for uploads.
| Path |
|---|
projectIdstringrequired |
Returns { builds: [{ id, status, fileName, size, platform, appId, appName, version, versionCode, minOs, abis, warnings, label, createdAt, readyAt }], maxBytes, partBytes }
curl https://app.testsy.dev/api/v1/projects/p_8f2k/builds \
-H "Authorization: Bearer $TESTSY_AI_API_KEY"Get a build
One build: its app id, version, status and any warnings.
| Path |
|---|
buildIdstringrequired |
Returns { build: { id, projectId, status, fileName, size, platform, appId, appName, version, versionCode, minOs, abis, warnings, sha256, label, createdAt, readyAt } }
curl https://app.testsy.dev/api/v1/builds/ab_q3 \
-H "Authorization: Bearer $TESTSY_AI_API_KEY"Find a build
Is this build already uploaded? Looks up the project's newest ready build by the file's sha256, else by a native fingerprint; build is null when neither matches. A sha256 match means the exact file is uploaded: run it with run_test {buildId} / run_project {buildIds} instead of uploading again. A fingerprint match (a hash of the native inputs the uploader stored with the build, for example @expo/fingerprint) means the native build is unchanged, so CI can skip building it. The command-line tool does this for files: testsy-ai build find / build ensure.
| Path |
|---|
projectIdstringrequired |
| Query |
|---|
sha256string |
fingerprintstring |
Returns { build | null, matchedBy: sha256 | fingerprint | null }
curl https://app.testsy.dev/api/v1/projects/p_8f2k/builds/lookup?sha256=… \
-H "Authorization: Bearer $TESTSY_AI_API_KEY"Create signed upload links
Start a build upload and get signed links that upload the file without an API key: run the returned command in a shell, or PUT each part and POST complete to the links. The build is then checked and ready to run. For AI agents: tool arguments cannot carry a build, so hand the bytes to a shell command. command downloads the command-line tool and uploads the file (parts, then complete). Without it: PUT the raw bytes of part n (partBytes each, the last one shorter) to partUrlTemplate with {partNumber} replaced, then POST {parts: [{partNumber, etag}]} to completeUrl. The links expire at expiresAt and work only for this upload. Call find_build first to skip uploading a file that is already there.
| Path |
|---|
projectIdstringrequired |
| Body (JSON) |
|---|
fileNamestringrequired |
sizenumberrequired |
labelstring |
fingerprintstring |
Returns 201 { id, partBytes, parts, expiresAt, uploadUrl, partUrlTemplate, completeUrl, command }
curl -X POST https://app.testsy.dev/api/v1/projects/p_8f2k/builds/upload \
-H "Authorization: Bearer $TESTSY_AI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileName":"app-debug.apk","size":41943040}'Import a build from a link
Fetch a build from an https link (an EAS, Bitrise, S3 or GitHub artifact link, up to the build size limit) into the project; it is checked and ready to run. Nothing to upload from your side. The link must be https to a public host name; up to 3 redirects are followed. headers (optional, at most 5: Authorization or X-… names) are sent to the first host only, for a private artifact store. The file name comes from Content-Disposition or the link; it must be an .apk or a zipped .app. Run the result with run_test {buildId} or run_project {buildIds}. Call find_build first when the file may already be there.
| Path |
|---|
projectIdstringrequired |
| Body (JSON) |
|---|
urlstringrequired |
headersobject |
labelstring |
fingerprintstring |
Returns 201 { build }: the checked build; 400 invalid when the link cannot be used, 422 build_rejected with what our devices cannot run
curl -X POST https://app.testsy.dev/api/v1/projects/p_8f2k/builds/import \
-H "Authorization: Bearer $TESTSY_AI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://app.example.com"}'Get an upload
The part size and count of an upload in progress (used by the command-line tool with a signed upload link).
| Path |
|---|
buildIdstringrequired |
Returns { id, fileName, size, partBytes, parts, status }
curl https://app.testsy.dev/api/v1/builds/ab_q3/upload \
-H "Authorization: Bearer $TESTSY_AI_API_KEY"Start a build upload
Start uploading a build with an API key: returns its id, the part size and the number of parts. The command-line tool does all three steps: testsy-ai build upload. Then upload_build_part for each part, followed by complete_build_upload with all returned etags. Over MCP use create_build_upload instead: it returns signed links a shell command uploads to.
| Path |
|---|
projectIdstringrequired |
| Body (JSON) |
|---|
fileNamestringrequired |
sizenumberrequired |
labelstring |
fingerprintstring |
Returns 201 { id, partBytes, parts }
curl -X POST https://app.testsy.dev/api/v1/projects/p_8f2k/builds \
-H "Authorization: Bearer $TESTSY_AI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileName":"app-debug.apk","size":41943040}'Upload a build part
Upload one part (partBytes each, the last one shorter). Returns its etag. Send raw bytes, or JSON {contentBase64} with Content-Type: application/json. Maximum 16 MB of decoded bytes per part. Use the partBytes from start_build_upload and preserve the returned etag for complete_build_upload. Also accepts the signed link from create_build_upload instead of an API key.
| Path |
|---|
buildIdstringrequired |
partNumbernumberrequired |
| Body |
|---|
contentBase64string |
Returns { partNumber, etag }
curl -X PUT https://app.testsy.dev/api/v1/builds/ab_q3/parts/1 \
-H "Authorization: Bearer $TESTSY_AI_API_KEY" \
--data-binary @part-1.binComplete a build upload
Finish the upload with every part's etag. The build is checked (app id, version, whether our devices can run it) and returned. Use the returned build.id in run_test {buildId} or run_project {buildIds} to run the new build. Uploading alone does not start a run. The command from create_build_upload completes the upload itself; call this only after uploading parts to the signed links yourself. Also accepts the signed completeUrl instead of an API key.
| Path |
|---|
buildIdstringrequired |
| Body (JSON) |
|---|
partsobject[]required |
Returns { build }: the checked build, or 422 build_rejected with what our devices cannot run
curl -X POST https://app.testsy.dev/api/v1/builds/ab_q3/complete \
-H "Authorization: Bearer $TESTSY_AI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"parts":[{"partNumber":1,"etag":"…"}]}'Delete a build
Delete a build. Runs that used it keep their results; a build a test pins cannot be deleted.
| Path |
|---|
buildIdstringrequired |
Returns { ok: true }
curl -X DELETE https://app.testsy.dev/api/v1/builds/ab_q3 \
-H "Authorization: Bearer $TESTSY_AI_API_KEY"