On this page
REST API
Thirteen routes on one base: https://xtest.io/api/v1. They list your suites, start a run, read what came back and what it found, verify a finding, and mark a finding fixed or ignored, or delete it, with the same limits the dashboard has. A screenshot link made with export=1 is signed and expires, and opens without a key, so a teammate can see it from a ticket. Authenticate every request with an API key from Setup, xtest API keys in the dashboard. A key sees one workspace: the company it was made for, or the personal workspace of the person who made it.
Every route
GET
/suites
Your suites, newest first. Takes ?limit= (max 100) and ?page=.
GET
/suites/:id
One suite with its test cases. A case that waits for a person to press Looks good on the test's page says so in waitsForLooksGood: "added" when a test agent added it, which a run started with a key leaves out until then, and "imported" when it came from Xray, which runs keep, though a test agent asks before opening a website only its steps name.
POST
/suites/:id/runs
Run a suite. Answers 202 with the run id, at once.
GET
/runs
Recent results, newest first. Takes ?suiteId=, ?status= and ?limit= (max 200). A result whose test agent marked steps not checked, which the device cannot do, says how many in notChecked; they are in neither step count.
GET
/runs/:id
One run, by the id the POST gave you. Poll it until it is over. A run whose test agents marked steps not checked says how many in notChecked: a pass with any is not every step checked.
GET
/artifacts/:id
A screenshot from a run, by the path the results carry.
GET
/findings
Everything your runs found. Filters: suiteId, testCaseId, runId, agentId, severity, status (candidate, open, fixed or ignored), platform, ruleId, since; several values are separated by commas, and an unknown one is a 400. Add export=1 for screenshot links a teammate can open.
GET
/runs/:runId/findings
What one run found, by the id of the AI run or of the recorded run.
GET
/suites/:suiteId/findings
What every run of one suite found.
PATCH
/findings/:id
Set one finding to open, fixed or ignored: { "status": "fixed" }. Setting a candidate to open confirms it as a person. Nobody sets a finding to candidate.
PATCH
/findings
Set up to 200 findings at once: { "ids": [...], "status": "ignored" }. Ids that are not yours are named under missing.
POST
/findings/:id/verify
Verify a candidate: xtest starts a verify run that follows its steps again, or says why it waits. Answers { finding, started, message }; a finding that is not a candidate, or is being verified already, is a 409, and when today's verify runs are used up it is a 429 that says when they come back.
DELETE
/findings/:id
Delete one finding for everyone in the workspace, and, for a finding a test agent reported, the step in its run that reported it; the run and its screenshots stay. In a company, only the person whose run found it or an admin may, and anyone else gets a 403.
There is no route that runs code you send, no batch or tag run, no schedule, no report builder and no webhook. A suite in another workspace than the key's is a 404, never a 403.
Authentication
Send the key as X-API-Key, or as Authorization: Bearer. A key starts with xtest_live_ and is shown once, when you create it.
curl "https://xtest.io/api/v1/suites?limit=25&page=1" -H "X-API-Key: xtest_live_…"Which workspace a key sees
Through the REST API and MCP, a key acts in one workspace, chosen when it is created. A key made for a company sees that company's suites, runs and findings and nothing else, and may do what the person who made it may do there. A key made without one, which is every key made before companies could have keys, sees the personal workspace of the person who made it. To reach a company's tests from CI, make the key for that company under Setup, xtest API keys. The xtest app's own routes under /api/v1/desktop are different: they act for the person, across every workspace they are in, and a key made for a company is refused there.
A company key works while the person who made it is a member of the company. Once they leave it, every request answers 403 KEY_CREATOR_LEFT, and a member makes a new key. The header X-Organization-Id cannot move a key: a request naming any other workspace answers 403 KEY_WORKSPACE_MISMATCH with a sentence saying which workspace the key can see, rather than an empty list, so a pipeline pointed at the wrong workspace fails instead of passing on nothing.
curl https://xtest.io/api/v1/suites -H "X-API-Key: xtest_live_…" -H "X-Organization-Id: ORG_ID"
# 403, when ORG_ID is not the workspace the key was made for
# { "error": "This key can see only Acme, the company it was made for, …",
# "code": "KEY_WORKSPACE_MISMATCH" }Running a suite
A suite with a Playwright script runs that script. Every other suite (written by hand, written by the AI, imported from a spreadsheet) replays its saved steps on the Cloud browser with no model call unless a step needs it: one that no longer fits, or one that types a value read off the screen. The body takes five fields, and decides what happens to a test with no saved steps, or whose saved step needs the AI:
"ai": "repair"(the default): the AI repairs the step that broke, types a value a saved step reads off the screen, works out any test that has no saved steps yet, and saves those steps for next time."ai": "off": saved steps only. A test without them ends “Skipped: no saved steps yet. Run it once with AI in xtest.” A test whose saved steps stop part way is skipped, saying where they stop, and one whose saved step types a value read off the screen replays up to that step and ends blocked, saying so: for step 3, “Needs a value from the screen: step 3 types something read off the page last time, which a replay cannot know.” Neither is a pass, and the CI script fails the build on either."strict": true: saved steps only, with no test agent. A saved step that no longer fits the app ends its test, and no saved steps are changed. A suite whose own strict mode is on runs every run started with a key strict, whatever the body says, and the answer then says"strict": true. Beside"ai": "repair"it is refused with 400 “A strict run replays saved steps only, so ai must be "off" or left out.”, and anything but true or false with “strict must be true or false.”"repeats": runs each test that many times, from 1 to 5, each a whole run of it with its own result; the answer says"repeats"when it is more than 1, and the run'stestslists every time, each under its test'stestCaseId, whiletestsTotalcounts tests. Anything else is refused with 400 “repeats must be a whole number from 1 to 5.”. In a suite with a test environment, every time of every test shares the run’s one seed: the seed path is called once, before the run’s first test, and the clean-up path once, after its last, both with the run’s own id. A test that uses up or changes its seeded data can then fail its later times, so give such a test its own data, or run each test once"testCaseIds": only those cases, in that order."deviceOptionId": only"cloud:web"is accepted. Runs on your own computer start from the dashboard, where you can watch them.
curl -X POST https://xtest.io/api/v1/suites/SUITE_ID/runs \
-H "X-API-Key: xtest_live_…" \
-H "Content-Type: application/json" \
-d '{ "ai": "repair" }'
# 202 Accepted
# { "runId": "…", "status": "queued", "poll": "/api/v1/runs/…" }
# A suite with a Playwright script answers "status": "running" instead.
# A suite with more than 200 tests answers testsPlanned, testsTotal and a note as well:
# a run takes at most 200, and xtest starts a run of the rest when it has ended.
# A suite with cases a test agent added, which wait for a person to press Looks good
# on its page, answers casesLeftOut and a note: a run started with a key leaves them out.Then poll the run. A run takes at most 200 tests; a larger suite runs as several runs that carry on from one another, which xtest starts itself, and the ended run names the next one. Your Anthropic key or included AI, the monthly limit, the three-runs-at-once limit and “Ask before paying, deleting, sending” all apply as they do in the app.
curl https://xtest.io/api/v1/runs/RUN_ID -H "X-API-Key: xtest_live_…"
# An AI run answers ai: true, and is over when finished is true: queued,
# running, waiting and paused are not over. A suite with a Playwright script
# answers without ai and finished, and is over when its status is not running.
# A run of a suite answers testsLeft, how many of the suite's tests no run has
# taken yet (a run takes at most 200), and, once xtest has started a run of
# the rest that carries on from this one, nextRunId: poll that run too, until
# testsLeft is 0. xtest starts the rest after the run's own ending, after its
# own restart cut the run, and after the six-hour stop; never after your Stop.
# A run that left out cases a test agent added, which were waiting for a person
# to press Looks good on the test's page, answers casesLeftOut, and a note that
# says only that, not the rest of what its start's note said.
# A run whose test agents marked steps not checked, which the device cannot do,
# such as one that needs someone speaking into the microphone, answers notChecked,
# how many, once it is over: a pass with any is not every step checked.
{
"run": {
"id": "…", "ai": true, "kind": "suite",
"status": "failed", "statusWord": "Failed", "finished": true,
"device": "Cloud browser", "trigger": "api", "testsTotal": 1, "testsLeft": 0,
"link": "https://xtest.io/dashboard?section=runs&run=…",
"tests": [
{
"testCaseId": "…", "title": "Pay with a saved card",
"status": "failed", "statusWord": "Failed",
"mode": "replay", "reason": "saved-steps", "summary": "…",
"steps": [{ "label": "Open /checkout", "ok": true }],
"screenshots": ["/api/v1/artifacts/…"]
}
],
"issues": [
{
"id": "…", "title": "Total ignores the discount", "severity": "major", "details": "…",
"url": "https://…/checkout", "expected": "$18", "actual": "$20",
"screenshot": "/api/v1/artifacts/…"
}
]
}
}Findings that are not confirmed yet
A finding a test agent reports starts with "status": "candidate": it is the test agent's word, and it does not count as open. A verify run follows its steps again on a device, with the test environment of the suite it was found in, and when the device answers the check of its expected result failed, that confirms it and it is open; a failed check of an earlier step does not. Setting it to open yourself confirms it too. A candidate is never filed in Jira. A finding a performance test agent reported naming a figure it measured, such as a largest paint of 4.1 s, rests on that page measurement, which the test agent of a verify run cannot take. One an accessibility test agent reported naming the rule it breaks, by its id (such as color-contrast), its WCAG success criterion (such as 1.4.3) or the rule's own words (such as colour contrast or keyboard trap), after its rules ran, rests on that test agent's own look, which a verify run does not repeat. No verify run is spent on either: it waits for someone to set it to open. Anything else they report, such as a button that does nothing, is verified like any other finding. A finding xtest measured itself, such as an accessibility rule, starts open. Every finding carries a verify object, or null for one that has none:
"verify": {
"state": "not-reproduced",
"note": null,
"runId": "…",
"testCaseId": "…",
"at": "2026-10-04T02:14:00.000Z",
"byRun": true
}
// state is one of:
// queued xtest will verify it by itself when a device is free
// waiting it waits for someone to press Verify, or, for a bug
// bash's finding xtest verifies by itself, for the bug
// bash to end and its turn among the 10 a day xtest
// verifies; note says why
// verifying a verify run is going (runId)
// reproduced the device answered the verify run's check of the
// expected result failed; the finding is open
// not-reproduced the device answered that check passed; it stays a candidate
// could-not-verify the verify run could not finish, or what the device
// answered does not settle it; note says why
// testCaseId is the saved test the verify run was kept as.
// byRun is false for a finding that rests on a performance test agent's page
// measurement (it names a figure it measured, such as 4.1 s) or on an
// accessibility test agent's own look (it names the rule it breaks, such as
// color-contrast, after its rules ran), which no verify run verifies: it
// waits for someone to set it to open.
// pressable is true, and present only, on a queued finding of a company whose
// last invoice is unpaid: xtest waits for the invoice, while
// POST /findings/:id/verify can start a verify run now.
// A bug bash's finding can carry sightings, present only when it has one:
// what its explorations reported again of the same defect, oldest first,
// each with runId, at, title, severity, url, steps, screenshots and
// deviceLabel, and expected and actual when it said them.A run's own result does not change: an issue that failed the run still does. A workspace starts a limited number of verify runs a day, counted from midnight UTC, and they use its AI like any other run.
A verify run xtest starts by itself runs as the person whose run reported the issue, and it makes way for that person's own runs: a run their key starts on the Cloud browser while one is going stops it and starts, rather than being refused with DEVICE_BUSY, and xtest verifies the issue again once the Cloud browser is free.
Errors
Every error is { "error": "…" }, with a code where the dashboard has one: 401 without a valid key, 402 PLAN_REQUIRED when the key's workspace has no plan, or a personal workspace's last payment did not go through, 402 COMPANY_PAUSED for a member's company key while the company is closed to its members, its owner's plan having ended or its last payment not having gone through (the error says which), 403 for a key used outside its workspace (KEY_CREATOR_LEFT, KEY_WORKSPACE_MISMATCH), 404 for anything that is not in the key's workspace, 409 when a limit stops the run (TOO_MANY_RUNS, DEVICE_BUSY, NEEDS_ANTHROPIC_KEY, CLOUD_BUSY), when the device's computer says it needs a person first (DEVICE_NEEDS_ATTENTION: adb keeps stopping there, until it is restarted in the xtest app), or a bug bash of the suite is running and the run's seed or clean-up could change the account its explorations are on (BUG_BASH_EXPLORING, until the bug bash ends), 422 for a script with nothing to run, and 429 when you are asking too often.
[Academy courses]