API keys
Keys for CI, scripts and AI agents: what each kind may do, and how to create and revoke them.
Create a key#
Owners and admins: Settings → API keys → Create key. Give it a name for where it will be used (so you know which to revoke later) and choose what it may do:
- Read results only: for dashboards, reporting and read-only agents. It lists projects, tests, runs and results, and nothing it holds can start a run, share a result or upload a build.
- Run tests and read results: right for CI pipelines and scripts. It can also upload app builds and create share links.
- Also create and edit tests: for AI agents that write tests for you, and scripts that manage tests.

The key (qa_…) is shown once. Store it as a secret named TESTSY_AI_API_KEY.
Revoke a key#
Revoke stops it straight away; anything using it stops working. The list shows each key's name, who made it, what it may do, when it was last used, and See its runs. Creating, revoking and using keys appears in the workspace's activity.
A key keeps working when the person who created it leaves the workspace; revoke it if it should stop. It stops working if that person deletes their Testsy account. Each key can make up to 300 requests a minute (see Errors and limits). An AI agent connected over MCP can sign in with your Testsy account instead of using a key: see MCP.
Good practice#
- One key per place it is used, so you can revoke one without the others.
- Keep keys in your CI's secret store, never in code.
- Give CI a key that can only run tests and read results.