API keys

Create a Testmode project API key for CI pipelines and AI agents in Settings, Project, API & CI, choose its expiry, store it as a secret, and revoke it. What a key can do, its rate limit and how it follows its creator’s role.

A project API key lets a CI pipeline or an AI agent use Testmode’s API in one project. Keys start with tmk_. Every plan includes them; on Free a project holds at most 10.

  1. Open Settings > Project > API & CI and click Create API key.

  2. Give it a Name that says where it is used, such as GitHub Actions or Nightly Jenkins.

  3. Choose when it Expires: 30 days, 90 days, 1 year or no expiry. The default is 90 days.

  4. Click Create key, and copy the key.

Settings, Project, API and CI: the project's API keys, and the snippets for running tests from a pipeline.
API & CI lists the project’s keys, with Create API key for Editors and above.

Creating and revoking keys needs the Editor role or above. Every project member sees the list: each key’s name, its prefix (such as tmk_Yz3AP4I8…), when and by whom it was created, when it was last used, and when it expires. An expired key is marked Expired.

Send it in the Authorization header:

Terminal window
curl https://api.testmode.ai/v1/project \
-H "Authorization: Bearer $TESTMODE_API_KEY"

X-Api-Key: tmk_… works too. The snippets on API & CI show where to put it for GitHub Actions, other CI and MCP clients.

A key works in its own project only, and acts for the member who created it, with less than that member may do. It reads the project’s environments, test plans, test cases and runs, starts runs and exploratory testing sessions, and reports deploys. It can’t read passwords or variable values, change tests, or create other keys.

The runs it starts show the key’s name as who started them, use the organization’s credits like any other run, and count toward the Free plan’s limits on Free.

A key allows 60 requests a minute, shared by every pipeline and agent that uses it. A waiting CI job polls every 15 seconds, so give pipelines that run many jobs at once their own keys. Over the limit, the API answers 429 with a Retry-After header.

A key works only while the member who created it is an Editor, Admin or Owner of the organization. When that member is removed or made a Viewer, their keys stop working for good; rejoining doesn’t bring them back. Create keys for pipelines as someone who will stay, and replace them when people leave.

Click the trash icon on the key and then Revoke. Pipelines and agents that use it get an error from their next request; runs it already started carry on. A revoked key can’t be restored. To replace a key without breaking CI, create the new key, update your CI secret, then revoke the old one.

Keys keep working after a password reset. Settings > Account > Your API keys counts every key you created, in every project, and has Revoke all: use it if someone else may have used your account. Keys your colleagues created are not affected. See Your profile.