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.
MCP tool: create_test. MCP OAuth: testsy:write or a higher scope. API keys: write access.
Path
projectIdstringrequired
Project id (p_…)
Body (JSON)
titlestringrequired
Short title (up to 200 characters)
urlstring
Start address (https://…); omit for app tests
requirementstring
What to do and check, in plain language (optional when plan is given)
planobject
A plan from plan_test: {title, startUrl, steps[], checks[], record[], assumptions[], credentials[]}. Stored as the approved checklist; the tester follows it as written.
platformweb | android | ios
web (default), android or ios
appIdstring
Apps: package name or bundle id, for example com.example.app (see list_builds)
buildIdstring
Apps: pin this build (ab_…); default: the app's newest build
devicestring
Websites: screen, desktop (default), tablet or mobile. Apps: phone (default) or tablet — an iPhone or iPad, an Android phone or tablet (see list_devices)
osVersionstring
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)
orientationdefault | portrait | landscape
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.
credentialsstring[]
Names of the project's sign-in accounts the tester may use (see list_credentials)
optionsobject
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).
Returns201 { id, approved }: approved is true when a plan was stored as the checklist
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.
MCP tool: update_test. MCP OAuth: testsy:write or a higher scope. API keys: write access.
Path
testIdstringrequired
Test id (t_…)
Body (JSON)
titlestring
New title
urlstring
New start address
requirementstring
New requirement text
planobject
A plan from plan_test: {title, startUrl, steps[], checks[], record[], assumptions[], credentials[]}. Stored as the approved checklist; the tester follows it as written.
devicephone | tablet
Apps: phone or tablet (see list_devices)
osVersionstring
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)
orientationdefault | portrait | landscape
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.
optionsobject
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).
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.
MCP tool: duplicate_test. MCP OAuth: testsy:write or a higher scope. API keys: write access.
Path
testIdstringrequired
Test id (t_…)
Body (JSON)
titlestring
Title of the copy (up to 200 characters); default: the original title with " (copy)"
projectIdstring
Project for the copy (p_…); default: the original's project
Returns201 { id, title, files }: the new test, its title and how many files were copied
Request
curl -X POST https://app.testsy.dev/api/v1/tests/t_mvg0/duplicate \
-H "Authorization: Bearer $TESTSY_AI_API_KEY"
Archive a test
DELETE/api/v1/tests/{testId}
Archive a test: it stops running; past runs stay in the run history.
MCP tool: delete_test. MCP OAuth: testsy:write or a higher scope. API keys: write access.