DOCS
Reference

API reference

Everything the app does with tests and runs, over HTTPS. Almost every endpoint is also an MCP tool with the same name and parameters; the few that send or receive raw file bytes are REST only.

Base address and keys#

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

What a key may do#

KeyMay
Read results onlyEvery read below: projects, tests, runs, results and their files, builds, usage. Nothing that starts, shares or uploads.
Run tests and read resultsRead everything below, start and stop runs, create and turn off share links and watch links, upload and import app builds.
Also create and edit testsAll of that, and create, change and archive projects and tests, draft plans, add test files, sign-in accounts, endpoints and schedules, delete builds and set the browsing country.

Each endpoint below says which key it needs. A key that may not gets 403 scope.

Errors#

Errors answer with a status and a JSON body: { "error": "What went wrong, in words", "code": "plan_limit" }. The common codes are in Errors and limits.

Retrying safely#

Starting runs (POST /tests/{testId}/run, POST /projects/{projectId}/run) accepts an Idempotency-Key header: 8 to 200 characters of letters, digits and _ . : -. A retry with the same key within 24 hours gets the first answer again, with Idempotent-Replayed: true, and starts nothing new. Only successful answers are kept, so a failed attempt can be retried.

If the first request with that key is still being processed, the retry gets 409 idempotency_in_progress: wait a few seconds and retry. Reusing a key for a different request gets 422 idempotency_mismatch.

Rate limit#

300 requests a minute per key. Above that: 429 rate_limited; wait and retry.

Ids#

Prefix
p_Project
t_Test
j_Run
ab_App build
s_Schedule
sh_Share link
wl_Watch link
cr_Sign-in account
ep_Endpoint

Endpoints#