DOCS
Reference

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

GET/api/v1/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.

MCP tool: list_devices. MCP OAuth: testsy:read or a higher scope. API keys: any active workspace key.

Returns { devices: [{ platform, forms: [{ id, name }], defaultForm, versions: [{ id, name, latest, apiLevel? }] }] }

Request
curl https://app.testsy.dev/api/v1/devices \
  -H "Authorization: Bearer $TESTSY_AI_API_KEY"

List builds

GET/api/v1/projects/{projectId}/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.

MCP tool: list_builds. MCP OAuth: testsy:read or a higher scope. API keys: any active workspace key.

Path
projectIdstringrequired
Project id (p_…)

Returns { builds: [{ id, status, fileName, size, platform, appId, appName, version, versionCode, minOs, abis, warnings, label, createdAt, readyAt }], maxBytes, partBytes }

Request
curl https://app.testsy.dev/api/v1/projects/p_8f2k/builds \
  -H "Authorization: Bearer $TESTSY_AI_API_KEY"

Get a build

GET/api/v1/builds/{buildId}

One build: its app id, version, status and any warnings.

MCP tool: get_build. MCP OAuth: testsy:read or a higher scope. API keys: any active workspace key.

Path
buildIdstringrequired
Build id (ab_…)

Returns { build: { id, projectId, status, fileName, size, platform, appId, appName, version, versionCode, minOs, abis, warnings, sha256, label, createdAt, readyAt } }

Request
curl https://app.testsy.dev/api/v1/builds/ab_q3 \
  -H "Authorization: Bearer $TESTSY_AI_API_KEY"

Find a build

GET/api/v1/projects/{projectId}/builds/lookup

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.

MCP tool: find_build. MCP OAuth: testsy:read or a higher scope. API keys: any active workspace key.

Path
projectIdstringrequired
Project id (p_…)
Query
sha256string
sha256 of the build file, 64 hex characters
fingerprintstring
Native fingerprint stored with the build (8–128 characters)

Returns { build | null, matchedBy: sha256 | fingerprint | null }

Request
curl https://app.testsy.dev/api/v1/projects/p_8f2k/builds/lookup?sha256=… \
  -H "Authorization: Bearer $TESTSY_AI_API_KEY"

Create signed upload links

POST/api/v1/projects/{projectId}/builds/upload

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.

MCP tool: create_build_upload. MCP OAuth: testsy:run or a higher scope. API keys: run or write access.

Path
projectIdstringrequired
Project id (p_…)
Body (JSON)
fileNamestringrequired
app.apk or MyApp.app.zip
sizenumberrequired
Size in bytes
labelstring
A label, for example the commit (optional)
fingerprintstring
Native fingerprint to store with the build, for find_build (optional)

Returns 201 { id, partBytes, parts, expiresAt, uploadUrl, partUrlTemplate, completeUrl, command }

Request
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

POST/api/v1/projects/{projectId}/builds/import

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.

MCP tool: import_build. MCP OAuth: testsy:run or a higher scope. API keys: run or write access.

Path
projectIdstringrequired
Project id (p_…)
Body (JSON)
urlstringrequired
https link to the build file
headersobject
Request headers for the link, e.g. {"Authorization": "Bearer …"} (optional)
labelstring
A label, for example the commit (optional)
fingerprintstring
Native fingerprint to store with the build, for find_build (optional)

Returns 201 { build }: the checked build; 400 invalid when the link cannot be used, 422 build_rejected with what our devices cannot run

Request
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

GET/api/v1/builds/{buildId}/upload

The part size and count of an upload in progress (used by the command-line tool with a signed upload link).

REST only. API keys: run or write access.

Path
buildIdstringrequired
Build id (ab_…)

Returns { id, fileName, size, partBytes, parts, status }

Request
curl https://app.testsy.dev/api/v1/builds/ab_q3/upload \
  -H "Authorization: Bearer $TESTSY_AI_API_KEY"

Start a build upload

POST/api/v1/projects/{projectId}/builds

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.

REST only. API keys: run or write access.

Path
projectIdstringrequired
Project id (p_…)
Body (JSON)
fileNamestringrequired
app.apk or MyApp.app.zip
sizenumberrequired
Size in bytes
labelstring
A label, for example the commit (optional)
fingerprintstring
Native fingerprint to store with the build, for find_build (optional)

Returns 201 { id, partBytes, parts }

Request
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

PUT/api/v1/builds/{buildId}/parts/{partNumber}

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.

REST only. API keys: run or write access.

Path
buildIdstringrequired
Build id (ab_…)
partNumbernumberrequired
1, 2, 3 …
Body
contentBase64string
This part's file bytes, base64-encoded (omit for a raw body)

Returns { partNumber, etag }

Request
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.bin

Complete a build upload

POST/api/v1/builds/{buildId}/complete

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.

MCP tool: complete_build_upload. MCP OAuth: testsy:run or a higher scope. API keys: run or write access.

Path
buildIdstringrequired
Build id (ab_…)
Body (JSON)
partsobject[]required
[{partNumber, etag}]

Returns { build }: the checked build, or 422 build_rejected with what our devices cannot run

Request
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/api/v1/builds/{buildId}

Delete a build. Runs that used it keep their results; a build a test pins cannot be deleted.

MCP tool: delete_build. MCP OAuth: testsy:write or a higher scope. API keys: write access.

Path
buildIdstringrequired
Build id (ab_…)

Returns { ok: true }

Request
curl -X DELETE https://app.testsy.dev/api/v1/builds/ab_q3 \
  -H "Authorization: Bearer $TESTSY_AI_API_KEY"