{"openapi":"3.1.0","info":{"title":"Testsy API","version":"1","description":"Run plain-English QA tests and read their results. Every operation is also an MCP tool of the same name at https://app.testsy.dev/mcp. Guide: https://testsy.dev/docs/api/","contact":{"url":"https://testsy.dev/docs/"}},"servers":[{"url":"https://app.testsy.dev/api/v1"}],"tags":[{"name":"Workspace"},{"name":"Projects"},{"name":"Tests"},{"name":"Test plans"},{"name":"Test files"},{"name":"Sign-in accounts"},{"name":"Endpoints"},{"name":"Runs"},{"name":"Share links"},{"name":"Schedules"},{"name":"App builds"}],"paths":{"/me":{"get":{"operationId":"get_workspace","summary":"Get the workspace","description":"The workspace this key belongs to: its id, name and plan, and this period's usage.","tags":["Workspace"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"get_workspace","responses":{"200":{"description":"{ org: { id, name, plan }, keyId, usage }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/usage":{"get":{"operationId":"get_usage","summary":"Get usage","description":"Plan, runs used this billing period, included runs, extra-run packs and runs left.","tags":["Workspace"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"get_usage","responses":{"200":{"description":"{ plan, period: { start, end }, runs, billable, active, appRuns, included, packs, packRuns, allowance, remaining, packRunsEach, packUsd, … }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/network":{"get":{"operationId":"get_network","summary":"Get network settings","description":"How our browsers reach your sites: the static addresses to allow-list, the country they browse from, and the countries available.","tags":["Workspace"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"get_network","responses":{"200":{"description":"{ addresses: [ip], browseFrom: \"auto\" | country code, countries: [{ code, name }] }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"set_browse_from","summary":"Set the browsing country","description":"Choose the country our browsers and devices reach your sites and app servers from (web and app tests), or automatic: the site's own country (an app test then uses our default country).","tags":["Workspace"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"set_browse_from","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":"string","description":"Two-letter country code (see get_network), or \"auto\""}},"required":["country"],"additionalProperties":false}}}},"responses":{"200":{"description":"{ browseFrom }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects":{"get":{"operationId":"list_projects","summary":"List projects","description":"The projects in this workspace (a project groups the tests of one site or app).","tags":["Projects"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"list_projects","responses":{"200":{"description":"{ projects: [{ id, name, description, createdAt }] }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create_project","summary":"Create a project","description":"Create a project, for example one per site or app.","tags":["Projects"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"create_project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Project name (up to 80 characters)"},"description":{"type":"string","description":"Optional description"}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"201 { id }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}":{"get":{"operationId":"get_project","summary":"Get a project","description":"One project.","tags":["Projects"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"get_project","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"responses":{"200":{"description":"{ project: { id, name, description, createdAt } }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"update_project","summary":"Update a project","description":"Rename a project or change its description.","tags":["Projects"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"update_project","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"New name"},"description":{"type":"string","description":"New description (\"\" clears it)"}},"additionalProperties":false}}}},"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete_project","summary":"Archive a project","description":"Archive a project: its tests stop running; past runs stay in the run history.","tags":["Projects"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"delete_project","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/tests":{"get":{"operationId":"list_tests","summary":"List tests","description":"The tests of a project, each with its latest run.","tags":["Tests"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"list_tests","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"responses":{"200":{"description":"{ tests: [{ id, projectId, title, url, requirement, options, plan, contract, lastRun, createdAt, updatedAt }] }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create_test","summary":"Create a test","description":"Create a test of a website (url) or of an app (platform android or ios, and appId; device phone or tablet and osVersion, default a phone on the latest OS). Pass `plan` (from plan_test, after the requester confirmed it): it is stored as the approved checklist and the tester follows it as written. Or pass `requirement`, plain-language text the tester plans itself at run time. Never put passwords in the text: name a sign-in account in `credentials`.","tags":["Tests"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"create_test","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Short title (up to 200 characters)"},"url":{"type":"string","description":"Start address (https://…); omit for app tests"},"requirement":{"type":"string","description":"What to do and check, in plain language (optional when plan is given)"},"plan":{"type":"object","description":"A plan from plan_test: {title, startUrl, steps[], checks[], record[], assumptions[], credentials[]}. Stored as the approved checklist; the tester follows it as written."},"platform":{"type":"string","enum":["web","android","ios"],"description":"web (default), android or ios"},"appId":{"type":"string","description":"Apps: package name or bundle id, for example com.example.app (see list_builds)"},"buildId":{"type":"string","description":"Apps: pin this build (ab_…); default: the app's newest build"},"device":{"type":"string","description":"Websites: screen, desktop (default), tablet or mobile. Apps: phone (default) or tablet — an iPhone or iPad, an Android phone or tablet (see list_devices)"},"osVersion":{"type":"string","description":"Apps: the OS version, latest (default) or a version — iOS: iOS 27, iOS 26, iOS 18, iOS 17; Android: Android 16, Android 15, Android 14, Android 13, Android 12, Android 11, Android 10 (see list_devices)"},"orientation":{"type":"string","enum":["default","portrait","landscape"],"description":"Apps: the screen's shape when the run starts — default (the device's own: phones and iPads upright, Android tablets on their side), portrait or landscape. The test may still rotate the device during the run."},"credentials":{"type":"array","items":{"type":"string"},"description":"Names of the project's sign-in accounts the tester may use (see list_credentials)"},"options":{"type":"object","description":"Test options, all optional: device (desktop | tablet | mobile; websites), timeoutMinutes (2-20; 20 when left out, the app sets 15), recordVideo (default true), trackers (block | allow; websites, default block), jsErrors (report | fail; websites, default report: errors from the site's own scripts are reported and fail the run only when one breaks a step; fail = any of them fails it), credentials (names of the project's sign-in accounts), services (email = its own mailbox, sms and call = its own phone number, http = the project's endpoints; sms, call and http need a paid plan), devices (1 or 2 phones; apps), platform (web | android | ios), appId and buildId (apps), buildUrl (apps: an https link to the build, downloaded every run), orientation (apps: default | portrait | landscape — the screen's shape when the run starts; default is the device's own)."}},"required":["title"],"additionalProperties":false}}}},"responses":{"201":{"description":"201 { id, approved }: approved is true when a plan was stored as the checklist","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tests/{testId}":{"get":{"operationId":"get_test","summary":"Get a test","description":"One test: its start address, requirement, plan, options and latest run.","tags":["Tests"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"get_test","parameters":[{"name":"testId","in":"path","required":true,"description":"Test id (t_…)","schema":{"type":"string","description":"Test id (t_…)"}}],"responses":{"200":{"description":"{ test: { id, projectId, title, url, requirement, options, plan, contract, lastRun, createdAt, updatedAt } }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"update_test","summary":"Update a test","description":"Change a test: its title, start address, requirement, plan or options. Only the fields you pass change; within `options`, only the options you pass change and the others keep their values.","tags":["Tests"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"update_test","parameters":[{"name":"testId","in":"path","required":true,"description":"Test id (t_…)","schema":{"type":"string","description":"Test id (t_…)"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"New title"},"url":{"type":"string","description":"New start address"},"requirement":{"type":"string","description":"New requirement text"},"plan":{"type":"object","description":"A plan from plan_test: {title, startUrl, steps[], checks[], record[], assumptions[], credentials[]}. Stored as the approved checklist; the tester follows it as written."},"device":{"type":"string","enum":["phone","tablet"],"description":"Apps: phone or tablet (see list_devices)"},"osVersion":{"type":"string","description":"Apps: the OS version, latest (default) or a version — iOS: iOS 27, iOS 26, iOS 18, iOS 17; Android: Android 16, Android 15, Android 14, Android 13, Android 12, Android 11, Android 10 (see list_devices)"},"orientation":{"type":"string","enum":["default","portrait","landscape"],"description":"Apps: the screen's shape when the run starts — default (the device's own: phones and iPads upright, Android tablets on their side), portrait or landscape. The test may still rotate the device during the run."},"options":{"type":"object","description":"Test options, all optional: device (desktop | tablet | mobile; websites), timeoutMinutes (2-20; 20 when left out, the app sets 15), recordVideo (default true), trackers (block | allow; websites, default block), jsErrors (report | fail; websites, default report: errors from the site's own scripts are reported and fail the run only when one breaks a step; fail = any of them fails it), credentials (names of the project's sign-in accounts), services (email = its own mailbox, sms and call = its own phone number, http = the project's endpoints; sms, call and http need a paid plan), devices (1 or 2 phones; apps), platform (web | android | ios), appId and buildId (apps), buildUrl (apps: an https link to the build, downloaded every run), orientation (apps: default | portrait | landscape — the screen's shape when the run starts; default is the device's own)."}},"additionalProperties":false}}}},"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete_test","summary":"Archive a test","description":"Archive a test: it stops running; past runs stay in the run history.","tags":["Tests"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"delete_test","parameters":[{"name":"testId","in":"path","required":true,"description":"Test id (t_…)","schema":{"type":"string","description":"Test id (t_…)"}}],"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tests/{testId}/duplicate":{"post":{"operationId":"duplicate_test","summary":"Duplicate a test","description":"Copy a test under a new title: the test's info is copied over (start address, requirement, plan, options and files). Its run history and schedules stay with the original. The copy counts toward the plan's test limit. Without `title` it is named \"<original title> (copy)\". Pass `projectId` to put the copy in another project of the workspace.","tags":["Tests"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"duplicate_test","parameters":[{"name":"testId","in":"path","required":true,"description":"Test id (t_…)","schema":{"type":"string","description":"Test id (t_…)"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Title of the copy (up to 200 characters); default: the original title with \" (copy)\""},"projectId":{"type":"string","description":"Project for the copy (p_…); default: the original's project"}},"additionalProperties":false}}}},"responses":{"201":{"description":"201 { id, title, files }: the new test, its title and how many files were copied","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/plan":{"post":{"operationId":"plan_test","summary":"Draft or revise a plan","description":"Have the assistant draft a test from a plain-language description, or revise a plan, without saving anything. Returns the proposed steps, checks, values to record, assumptions and any questions only the requester can answer. Show the plan to the requester; to change it, call again with `plan` and `change`; to answer questions, pass `answers`. Once they confirm, pass the plan to create_test. When no question is open the plan has passed the planning review (review.ok). Pass projectId so the assistant knows the project's sign-in accounts and endpoints. Each call uses one assistant draft of the workspace's daily allowance.","tags":["Test plans"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"plan_test","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string","description":"What to test, as you would brief a colleague"},"url":{"type":"string","description":"Start address (https://…); omit for app tests"},"projectId":{"type":"string","description":"Project id (p_…), optional"},"platform":{"type":"string","enum":["web","android","ios"],"description":"web (default), android or ios"},"appId":{"type":"string","description":"Apps: package name or bundle id"},"plan":{"type":"object","description":"A plan from an earlier plan_test call, to revise"},"change":{"type":"string","description":"With plan: what to change, for example \"also check the price on the cart page\""},"answers":{"type":"object","additionalProperties":{"type":"string"},"description":"Answers to the questions of an earlier plan_test call, keyed by question id"}},"required":["description"],"additionalProperties":false}}}},"responses":{"200":{"description":"{ plan: { title, startUrl, steps, checks, record, assumptions, credentials, questions }, requirement, reply, questions, review, draftsLeftToday }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tests/{testId}/files":{"get":{"operationId":"list_test_files","summary":"List a test's files","description":"Files a test can upload during its steps (for example an import file).","tags":["Test files"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"list_test_files","parameters":[{"name":"testId","in":"path","required":true,"description":"Test id (t_…)","schema":{"type":"string","description":"Test id (t_…)"}}],"responses":{"200":{"description":"{ files: [{ name, size, contentType, createdAt }] }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"add_test_file","summary":"Add a test file","description":"Add a file the tester can upload during the test: up to 25 MB, up to 10 files per test. REST: send the raw bytes as the body with the file name in the X-File-Name header (or ?name=), or JSON {name, contentBase64}. MCP: name and contentBase64. A file with the same name replaces the old one.","tags":["Test files"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"add_test_file","parameters":[{"name":"testId","in":"path","required":true,"description":"Test id (t_…)","schema":{"type":"string","description":"Test id (t_…)"}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"File name, for example orders-march.csv"},"contentBase64":{"type":"string","description":"The file's bytes, base64-encoded"},"contentType":{"type":"string","description":"Media type, for example text/csv (optional)"}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"201 { name, size }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tests/{testId}/files/{name}":{"delete":{"operationId":"delete_test_file","summary":"Delete a test file","description":"Remove one of a test's files.","tags":["Test files"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"delete_test_file","parameters":[{"name":"testId","in":"path","required":true,"description":"Test id (t_…)","schema":{"type":"string","description":"Test id (t_…)"}},{"name":"name","in":"path","required":true,"description":"File name","schema":{"type":"string","description":"File name"}}],"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/credentials":{"get":{"operationId":"list_credentials","summary":"List sign-in accounts","description":"The sign-in accounts stored for a project: names, usernames and sites. Passwords are never returned.","tags":["Sign-in accounts"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"list_credentials","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"responses":{"200":{"description":"{ credentials: [{ id, name, username, site, createdAt, lastUsedAt }] }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"add_credential","summary":"Add a sign-in account","description":"Store a sign-in account the tester can use. The password is encrypted, never returned, and never sent to the tester's AI: the tester types it. Tests refer to the account by name (\"Sign in as the account \\\"customer\\\"\"). Through MCP the password passes through your AI agent: prefer adding passwords in the web app or over the REST API from a secret store.","tags":["Sign-in accounts"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"add_credential","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name tests use, for example customer (up to 60 characters)"},"username":{"type":"string","description":"Username or email"},"password":{"type":"string","description":"Password (write-only)"},"site":{"type":"string","description":"Site it belongs to, optional"}},"required":["name","username","password"],"additionalProperties":false}}}},"responses":{"201":{"description":"201 { id }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/credentials/{credentialId}":{"delete":{"operationId":"delete_credential","summary":"Delete a sign-in account","description":"Delete a sign-in account. Tests that sign in with it stop running until it is added again or they are edited.","tags":["Sign-in accounts"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"delete_credential","parameters":[{"name":"credentialId","in":"path","required":true,"description":"Account id (cr_…)","schema":{"type":"string","description":"Account id (cr_…)"}}],"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/endpoints":{"get":{"operationId":"list_endpoints","summary":"List endpoints","description":"Calls into your own systems the tester may make during a run (for example \"create a voucher\"). Headers are never returned.","tags":["Endpoints"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"list_endpoints","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"responses":{"200":{"description":"{ endpoints: [{ id, name, description, method, url, created_at, last_used_at }] }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"add_endpoint","summary":"Save an endpoint definition","description":"Save the definition of one call into your own system that the tester may make during a run (for example \"create a voucher\"). This only stores the definition: it sends no request itself. The tester sees only the name, the description and what the call returned. bodyTemplate may contain {{param}} placeholders the tester fills in. Headers (for example Authorization) are encrypted and never returned.","tags":["Endpoints"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"add_endpoint","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Short name (up to 40 characters), for example create_voucher"},"description":{"type":"string","description":"What it does and when to use it (up to 600 characters)"},"method":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"HTTP method (default POST)"},"url":{"type":"string","description":"https://… address"},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Request headers, up to 20 (write-only)"},"bodyTemplate":{"type":"string","description":"Request body with {{param}} placeholders, optional"}},"required":["name","description","url"],"additionalProperties":false}}}},"responses":{"201":{"description":"201 { id }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/endpoints/{endpointId}":{"delete":{"operationId":"delete_endpoint","summary":"Delete an endpoint","description":"Delete an endpoint.","tags":["Endpoints"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"delete_endpoint","parameters":[{"name":"endpointId","in":"path","required":true,"description":"Endpoint id (ep_…)","schema":{"type":"string","description":"Endpoint id (ep_…)"}}],"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tests/{testId}/run":{"post":{"operationId":"run_test","summary":"Run a test","description":"Start a run of one test. Runs take minutes: poll get_run until final is true. watchUrl opens the run live without signing in. App tests run the newest build of their app unless buildId names another (see list_builds). watchUrl is a view-only link anyone can open (no sign-in) to watch the run live and read its result for a while after it ends; give it to the person waiting for the result. Absent when the workspace turned watch links off. REST: send an Idempotency-Key header so a retried request does not start a second run.","tags":["Runs"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":"run_test","parameters":[{"name":"testId","in":"path","required":true,"description":"Test id (t_…)","schema":{"type":"string","description":"Test id (t_…)"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per attempt; a retry with the same value returns the first answer instead of acting twice.","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["auto","cold","warm"],"description":"auto (default) replays the learned path when it is fresh, else explores; cold always explores; warm only replays."},"buildId":{"type":"string","description":"Apps: run this build (ab_…)"},"device":{"type":"string","enum":["phone","tablet"],"description":"App tests: this run on a phone or tablet, whatever the test is set to (the test does not change; see list_devices)"},"osVersion":{"type":"string","description":"App tests: this run on this OS version, for example latest, iOS 26 or Android 14 (the test does not change; see list_devices)"},"orientation":{"type":"string","enum":["default","portrait","landscape"],"description":"App tests: this run started in this orientation, default, portrait or landscape (the test does not change)"},"url":{"type":"string","description":"Websites: start at this address instead of the test's saved one — a preview or staging deploy of the same site. The run then explores (cold)."}},"additionalProperties":false}}}},"responses":{"201":{"description":"201 { runId, mode, overage, link, watchUrl }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/run":{"post":{"operationId":"run_project","summary":"Run a project","description":"Start a run of every test in a project (a suite). Each started run has a watchUrl to watch it live without signing in. buildIds: builds to use; each app test runs the one of its own app. Tests that could not start are listed in skipped with the reason. REST: send an Idempotency-Key header to make a retry safe.","tags":["Runs"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":"run_project","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique value per attempt; a retry with the same value returns the first answer instead of acting twice.","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["auto","cold","warm"],"description":"auto (default) replays the learned path when it is fresh, else explores; cold always explores; warm only replays."},"buildIds":{"type":"array","items":{"type":"string"},"description":"Build ids (ab_…), optional"},"buildId":{"type":"string","description":"One build id (ab_…), optional"},"device":{"type":"string","enum":["phone","tablet"],"description":"App tests: this run on a phone or tablet, whatever the test is set to (the test does not change; see list_devices)"},"osVersion":{"type":"string","description":"App tests: this run on this OS version, for example latest, iOS 26 or Android 14 (the test does not change; see list_devices)"},"orientation":{"type":"string","enum":["default","portrait","landscape"],"description":"App tests: this run started in this orientation, default, portrait or landscape (the test does not change)"},"url":{"type":"string","description":"Websites: every website test starts at this address (a preview or staging deploy of the same site) and explores; app tests run their build as usual."}},"additionalProperties":false}}}},"responses":{"201":{"description":"201 { started: [{ testId, runId, mode, buildId, link, watchUrl }], skipped: [{ testId, reason }], upgradeUrl? (when the plan stopped a run) }. Nothing started: 402 not_started (or 400 empty) with the same lists","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs":{"get":{"operationId":"list_runs","summary":"List runs","description":"Recent runs, newest first, optionally for one test or project or with one status; or the runs with the given ids.","tags":["Runs"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"list_runs","parameters":[{"name":"ids","in":"query","required":false,"description":"Comma-separated run ids (j_…, up to 50): returns their full views","schema":{"type":"string","description":"Comma-separated run ids (j_…, up to 50): returns their full views"}},{"name":"testId","in":"query","required":false,"description":"Only this test","schema":{"type":"string","description":"Only this test"}},{"name":"projectId","in":"query","required":false,"description":"Only this project","schema":{"type":"string","description":"Only this project"}},{"name":"status","in":"query","required":false,"description":"Only this status","schema":{"type":"string","enum":["queued","running","passed","failed","blocked","inconclusive","error","cancelled"],"description":"Only this status"}},{"name":"limit","in":"query","required":false,"description":"At most this many (default 50, up to 200)","schema":{"type":"number","description":"At most this many (default 50, up to 200)"}}],"responses":{"200":{"description":"{ runs: [{ id, testId, testTitle, status, mode, source, platform, createdAt, finishedAt, durationMs, … }] }; with ids, each run as in Get a run","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{runId}":{"get":{"operationId":"get_run","summary":"Get a run","description":"A run: its status, and once final the verdict, the headline, each check's result with the reason, the values read, and links to the video, screenshots and the result page.","tags":["Runs"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"get_run","parameters":[{"name":"runId","in":"path","required":true,"description":"Run id (j_…)","schema":{"type":"string","description":"Run id (j_…)"}}],"responses":{"200":{"description":"{ run: { id, testId, testTitle, url, mode, status, final, createdAt, startedAt, finishedAt, durationMs, error, device, verdict, headline, requirements, captures, video, screenshots, build, link } }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{runId}/wait":{"get":{"operationId":"wait_run","summary":"Wait for a run","description":"Wait up to seconds (default 25, at most 55) for a run to finish, then return it: one call instead of polling get_run every few seconds. Call it again while final is false. The answer comes back the moment the run is final (verdict, checks and evidence in), or when the time is up with final false — then call wait_run again. Runs take 2 to 20 minutes, so expect several calls for a long run; each costs nothing while it waits.","tags":["Runs"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"wait_run","parameters":[{"name":"runId","in":"path","required":true,"description":"Run id (j_…)","schema":{"type":"string","description":"Run id (j_…)"}},{"name":"seconds","in":"query","required":false,"description":"How long to wait at most, 1–55 (default 25)","schema":{"type":"number","description":"How long to wait at most, 1–55 (default 25)"}}],"responses":{"200":{"description":"{ run (as in Get a run), final, waitedMs }: the run once it is final, or as it stands when the wait is over","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{runId}/stop":{"post":{"operationId":"stop_run","summary":"Stop a run","description":"Stop a queued or running run. A run you stop is not counted.","tags":["Runs"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":"stop_run","parameters":[{"name":"runId","in":"path","required":true,"description":"Run id (j_…)","schema":{"type":"string","description":"Run id (j_…)"}}],"responses":{"200":{"description":"{ status }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{runId}/files/{file}":{"get":{"operationId":"get_run_file","summary":"Download a run file","description":"Download a run's video or screenshot (the links in get_run). Supports Range requests.","tags":["Runs"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":null,"parameters":[{"name":"runId","in":"path","required":true,"description":"Run id (j_…)","schema":{"type":"string","description":"Run id (j_…)"}},{"name":"file","in":"path","required":true,"description":"File path from get_run","schema":{"type":"string","description":"File path from get_run"}}],"responses":{"200":{"description":"The file (video/mp4, image/png, …); 206 for a Range request","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{runId}/watch-link":{"post":{"operationId":"create_watch_link","summary":"Create a watch link","description":"A view-only link to watch a run live and read its result, with no sign-in, valid while it runs and for some hours after. Runs started here get one automatically; this makes another, or one for a run started from the web app. The link shows the live screen, the steps and checks so far, then the read-only result. membersOnly is true when the workspace limits watch links to signed-in members (or the run came from a public repository). 403 when the workspace turned watch links off.","tags":["Share links"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":"create_watch_link","parameters":[{"name":"runId","in":"path","required":true,"description":"Run id (j_…)","schema":{"type":"string","description":"Run id (j_…)"}}],"responses":{"201":{"description":"201 { id, url, membersOnly, afterHours }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"revoke_watch_link","summary":"Turn off watch links","description":"Turn off every watch link of a run straight away.","tags":["Share links"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":"revoke_watch_link","parameters":[{"name":"runId","in":"path","required":true,"description":"Run id (j_…)","schema":{"type":"string","description":"Run id (j_…)"}}],"responses":{"200":{"description":"{ ok: true, revoked }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{runId}/shares":{"get":{"operationId":"list_share_links","summary":"List share links","description":"The share links made for a run, with when they expire and how often they were opened.","tags":["Share links"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"list_share_links","parameters":[{"name":"runId","in":"path","required":true,"description":"Run id (j_…)","schema":{"type":"string","description":"Run id (j_…)"}}],"responses":{"200":{"description":"{ shares: [{ id, created_at, expires_at, revoked_at, views, viewed_at }] }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create_share_link","summary":"Create a share link","description":"A read-only link to a run's result, replay and video that anyone can open without signing in, until it expires.","tags":["Share links"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":"create_share_link","parameters":[{"name":"runId","in":"path","required":true,"description":"Run id (j_…)","schema":{"type":"string","description":"Run id (j_…)"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"number","description":"Days until it expires: 7, 30 (default) or 90"}},"additionalProperties":false}}}},"responses":{"201":{"description":"201 { id, url, expiresAt }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shares/{shareId}":{"delete":{"operationId":"delete_share_link","summary":"Turn off a share link","description":"Turn off a share link straight away.","tags":["Share links"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":"delete_share_link","parameters":[{"name":"shareId","in":"path","required":true,"description":"Share link id (sh_…)","schema":{"type":"string","description":"Share link id (sh_…)"}}],"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/schedules":{"get":{"operationId":"list_schedules","summary":"List schedules","description":"When tests run by themselves: every schedule in the workspace, or those of one test or project.","tags":["Schedules"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"list_schedules","parameters":[{"name":"testId","in":"query","required":false,"description":"Only this test","schema":{"type":"string","description":"Only this test"}},{"name":"projectId","in":"query","required":false,"description":"Only this project","schema":{"type":"string","description":"Only this project"}}],"responses":{"200":{"description":"{ schedules: [{ id, testId, days, dayOfMonth, time, timezone, enabled, nextRunAt, lastRunAt, lastJobId, lastNote, text }] }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tests/{testId}/schedules":{"post":{"operationId":"create_schedule","summary":"Create a schedule","description":"Run a test by itself: on chosen weekdays, or monthly on a day, at a time in a time zone. Each scheduled run counts like any other run.","tags":["Schedules"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"create_schedule","parameters":[{"name":"testId","in":"path","required":true,"description":"Test id (t_…)","schema":{"type":"string","description":"Test id (t_…)"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"description":"Weekdays: mon … sun (default every day)"},"dayOfMonth":{"type":"number","description":"Monthly instead: day 1-28"},"time":{"type":"string","description":"Local time, HH:MM (24 h), for example 02:00"},"timezone":{"type":"string","description":"IANA time zone, for example Australia/Sydney (default UTC)"}},"required":["time"],"additionalProperties":false}}}},"responses":{"201":{"description":"201 { id }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/schedules/{scheduleId}":{"patch":{"operationId":"update_schedule","summary":"Pause or resume a schedule","description":"Pause or resume a schedule.","tags":["Schedules"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"update_schedule","parameters":[{"name":"scheduleId","in":"path","required":true,"description":"Schedule id (s_…)","schema":{"type":"string","description":"Schedule id (s_…)"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"false pauses it, true resumes it"}},"required":["enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"{ ok: true, enabled }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete_schedule","summary":"Delete a schedule","description":"Delete a schedule.","tags":["Schedules"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"delete_schedule","parameters":[{"name":"scheduleId","in":"path","required":true,"description":"Schedule id (s_…)","schema":{"type":"string","description":"Schedule id (s_…)"}}],"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/devices":{"get":{"operationId":"list_devices","summary":"List devices","description":"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.","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"list_devices","responses":{"200":{"description":"{ devices: [{ platform, forms: [{ id, name }], defaultForm, versions: [{ id, name, latest, apiLevel? }] }] }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/builds":{"get":{"operationId":"list_builds","summary":"List builds","description":"The app builds uploaded to a project (Android .apk, iOS Simulator .app zipped), newest first, with the largest size and part size for uploads.","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"list_builds","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"responses":{"200":{"description":"{ builds: [{ id, status, fileName, size, platform, appId, appName, version, versionCode, minOs, abis, warnings, label, createdAt, readyAt }], maxBytes, partBytes }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"start_build_upload","summary":"Start a build upload","description":"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.","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":null,"parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","description":"app.apk or MyApp.app.zip"},"size":{"type":"number","description":"Size in bytes"},"label":{"type":"string","description":"A label, for example the commit (optional)"},"fingerprint":{"type":"string","description":"Native fingerprint to store with the build, for find_build (optional)"}},"required":["fileName","size"],"additionalProperties":false}}}},"responses":{"201":{"description":"201 { id, partBytes, parts }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/builds/{buildId}":{"get":{"operationId":"get_build","summary":"Get a build","description":"One build: its app id, version, status and any warnings.","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"get_build","parameters":[{"name":"buildId","in":"path","required":true,"description":"Build id (ab_…)","schema":{"type":"string","description":"Build id (ab_…)"}}],"responses":{"200":{"description":"{ build: { id, projectId, status, fileName, size, platform, appId, appName, version, versionCode, minOs, abis, warnings, sha256, label, createdAt, readyAt } }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete_build","summary":"Delete a build","description":"Delete a build. Runs that used it keep their results; a build a test pins cannot be deleted.","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:write"]}],"x-scope":"write","x-mcp-tool":"delete_build","parameters":[{"name":"buildId","in":"path","required":true,"description":"Build id (ab_…)","schema":{"type":"string","description":"Build id (ab_…)"}}],"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/builds/lookup":{"get":{"operationId":"find_build","summary":"Find a build","description":"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.","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:read"]}],"x-scope":"read","x-mcp-tool":"find_build","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}},{"name":"sha256","in":"query","required":false,"description":"sha256 of the build file, 64 hex characters","schema":{"type":"string","description":"sha256 of the build file, 64 hex characters"}},{"name":"fingerprint","in":"query","required":false,"description":"Native fingerprint stored with the build (8–128 characters)","schema":{"type":"string","description":"Native fingerprint stored with the build (8–128 characters)"}}],"responses":{"200":{"description":"{ build | null, matchedBy: sha256 | fingerprint | null }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/builds/upload":{"post":{"operationId":"create_build_upload","summary":"Create signed upload links","description":"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.","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":"create_build_upload","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","description":"app.apk or MyApp.app.zip"},"size":{"type":"number","description":"Size in bytes"},"label":{"type":"string","description":"A label, for example the commit (optional)"},"fingerprint":{"type":"string","description":"Native fingerprint to store with the build, for find_build (optional)"}},"required":["fileName","size"],"additionalProperties":false}}}},"responses":{"201":{"description":"201 { id, partBytes, parts, expiresAt, uploadUrl, partUrlTemplate, completeUrl, command }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{projectId}/builds/import":{"post":{"operationId":"import_build","summary":"Import a build from a link","description":"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.","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":"import_build","parameters":[{"name":"projectId","in":"path","required":true,"description":"Project id (p_…)","schema":{"type":"string","description":"Project id (p_…)"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"https link to the build file"},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Request headers for the link, e.g. {\"Authorization\": \"Bearer …\"} (optional)"},"label":{"type":"string","description":"A label, for example the commit (optional)"},"fingerprint":{"type":"string","description":"Native fingerprint to store with the build, for find_build (optional)"}},"required":["url"],"additionalProperties":false}}}},"responses":{"201":{"description":"201 { build }: the checked build; 400 invalid when the link cannot be used, 422 build_rejected with what our devices cannot run","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/builds/{buildId}/upload":{"get":{"operationId":"get_build_upload","summary":"Get an upload","description":"The part size and count of an upload in progress (used by the command-line tool with a signed upload link).","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":null,"parameters":[{"name":"buildId","in":"path","required":true,"description":"Build id (ab_…)","schema":{"type":"string","description":"Build id (ab_…)"}}],"responses":{"200":{"description":"{ id, fileName, size, partBytes, parts, status }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/builds/{buildId}/parts/{partNumber}":{"put":{"operationId":"upload_build_part","summary":"Upload a build part","description":"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.","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":null,"parameters":[{"name":"buildId","in":"path","required":true,"description":"Build id (ab_…)","schema":{"type":"string","description":"Build id (ab_…)"}},{"name":"partNumber","in":"path","required":true,"description":"1, 2, 3 …","schema":{"type":"number","description":"1, 2, 3 …"}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"object","properties":{"contentBase64":{"type":"string","description":"This part's file bytes, base64-encoded (omit for a raw body)"}},"additionalProperties":false}}}},"responses":{"200":{"description":"{ partNumber, etag }","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/builds/{buildId}/complete":{"post":{"operationId":"complete_build_upload","summary":"Complete a build upload","description":"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.","tags":["App builds"],"security":[{"apiKey":[]},{"oauth2":["testsy:run"]}],"x-scope":"run","x-mcp-tool":"complete_build_upload","parameters":[{"name":"buildId","in":"path","required":true,"description":"Build id (ab_…)","schema":{"type":"string","description":"Build id (ab_…)"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object"},"description":"[{partNumber, etag}]"}},"required":["parts"],"additionalProperties":false}}}},"responses":{"200":{"description":"{ build }: the checked build, or 422 build_rejected with what our devices cannot run","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad input: { error, code }.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key or token lacks the permission for this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (300 a minute per key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong, for a person."},"code":{"type":"string","description":"A stable code for programs."}},"required":["error","code"]}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"A workspace API key (Settings → API keys): Authorization: Bearer qa_…"},"oauth2":{"type":"oauth2","description":"OAuth 2.1 with PKCE, for MCP hosts and apps acting for a person.","flows":{"authorizationCode":{"authorizationUrl":"https://app.testsy.dev/oauth/authorize","tokenUrl":"https://app.testsy.dev/oauth/token","refreshUrl":"https://app.testsy.dev/oauth/token","scopes":{"testsy:read":"Read tests, runs and results.","testsy:run":"Start and stop runs, share results, upload builds (includes read).","testsy:write":"Create and edit tests, projects and settings (includes run)."}}}}}}}