API: Workspace
Workspace: Get the workspace, Get usage, Get network settings, Set the browsing country.
Get the workspace
The workspace this key belongs to: its id, name and plan, and this period's usage.
Returns { org: { id, name, plan }, keyId, usage }
curl https://app.testsy.dev/api/v1/me \
-H "Authorization: Bearer $QA_AI_API_KEY"Get usage
Plan, runs used this billing period, included runs, extra-run packs and runs left.
Returns { plan, period: { start, end }, runs, billable, active, appRuns, included, packs, packRuns, allowance, remaining, packRunsEach, packUsd, … }
curl https://app.testsy.dev/api/v1/usage \
-H "Authorization: Bearer $QA_AI_API_KEY"Get network settings
How our browsers reach your sites: the static addresses to allow-list, the country they browse from, and the countries available.
Returns { addresses: [ip], browseFrom: "auto" | country code, countries: [{ code, name }] }
curl https://app.testsy.dev/api/v1/network \
-H "Authorization: Bearer $QA_AI_API_KEY"Set the browsing country
Choose the country our browsers visit your sites from (web tests), or automatic: the site's own country.
| Body (JSON) |
|---|
countrystringrequired |
Returns { browseFrom }
curl -X PATCH https://app.testsy.dev/api/v1/network \
-H "Authorization: Bearer $QA_AI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"country":"DE"}'