Skip to content

list_my_tests

Every test paid with your API key's workspace, newest first.

GET/api/agent/tests
MCP tool list_my_testsNeeds a key

list_my_tests returns the tests paid with keys of your workspace, newest first, each in the same shape as get_test. It needs an API key with the read scope, or a client signed in with DECA. A test paid without a key is not listed; read it with its access_token.

Parameters

None.

Request

curl -H "Authorization: Bearer deca_sk_…" https://app.decalabs.ai/api/agent/tests

Response

JSON
{
  "count": 2,
  "tests": [
    { "id": "…", "state": "live", "option": "clear", "budget_usd": 1400, "result": { "confirmed_so_far": 12, "pass_line": 31 }, "…": "…" },
    { "id": "…", "state": "done", "option": "signal", "budget_usd": 600, "result": { "verdict": "pass", "confirmed": 19, "pass_line": 15 }, "…": "…" }
  ]
}

It returns up to 50 tests.

Errors

Code Status What to do
key_required 401 Send an API key, or sign in with DECA
scope_missing 403 In MCP & API, press Edit on the key and tick Read