[Go to site: main page, start]

DOCS
Reference

API: Workspace

Workspace: Get the workspace, Get usage, Get network settings, Set the browsing country.

Get the workspace

GET/api/v1/me

The workspace this key belongs to: its id, name and plan, and this period's usage.

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

Returns { org: { id, name, plan }, keyId, usage }

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

Get usage

GET/api/v1/usage

Plan, runs used this billing period, included runs, extra-run packs and runs left.

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

Returns { plan, period: { start, end }, runs, billable, active, appRuns, included, packs, packRuns, allowance, remaining, packRunsEach, packUsd, … }

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

Get network settings

GET/api/v1/network

How our browsers reach your sites: the static addresses to allow-list, the country they browse from, and the countries available.

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

Returns { addresses: [ip], browseFrom: "auto" | country code, countries: [{ code, name }] }

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

Set the browsing country

PATCH/api/v1/network

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).

MCP tool: set_browse_from. MCP OAuth: testsy:write or a higher scope. OAuth also requires a workspace owner or admin. API keys: write access.

Body (JSON)
countrystringrequired
Two-letter country code (see get_network), or "auto"

Returns { browseFrom }

Request
curl -X PATCH https://app.testsy.dev/api/v1/network \
  -H "Authorization: Bearer $TESTSY_AI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"DE"}'