# get_test

> A paid test's state and everything in it, from payment and review to its progress and result.

**GET /api/agent/tests/{id} · MCP tool get_test · Free**
`get_test` reads one test you paid for: its payment, where it stands, its pass line, its progress while the ads run and its result at the end. It can be read with the API key it was paid with, or with the `access_token` that [`start_test`](https://app.decalabs.ai/docs/tools/start-test) returned.

## Parameters

| Name | Type | Description |
|---|---|---|
| `id` | string | **Required.** The test's id. |
| `access_token` | string | The `access_token` from `start_test`, when the test was paid without a key. Over REST, send it as the `X-Test-Token` header or `?token=`. |

## Request

```bash title="With a key"
curl -H "Authorization: Bearer deca_sk_…" \
  https://app.decalabs.ai/api/agent/tests/TEST_ID
```

```bash title="With its access token"
curl -H "X-Test-Token: deca_tt_…" \
  https://app.decalabs.ai/api/agent/tests/TEST_ID
```

```json title="MCP"
{ "name": "get_test", "arguments": { "id": "TEST_ID", "access_token": "deca_tt_…" } }
```

## Response

```json
{
  "test": {
    "id": "…",
    "state": "done",
    "sandbox": false,
    "idea": { "id": "…", "pitch": "…" },
    "option": "signal",
    "budget_usd": 600,
    "launch_fee_usd": 29,
    "markets": ["US", "GB"],
    "pass_line": 15,
    "payment": { "network": "base", "amount_usdc": 629, "to": "0x7FB3…", "payer": "0x…", "tx": "0x…", "url": "https://basescan.org/tx/0x…" },
    "refund": { "usd": 42.1, "tx": null, "status": "owed" },
    "decline_reason": null,
    "result": { "verdict": "pass", "confirmed": 19, "pass_line": 15 },
    "next": "The result is in.",
    "timeline": [{ "at": "…", "state": "settling" }, { "at": "…", "state": "in_review", "note": "paid", "tx": "0x…" }],
    "created_at": "…",
    "updated_at": "…"
  }
}
```

| Field | Description |
|---|---|
| `state` | One of `settling`, `in_review`, `building`, `live`, `reading`, `done`, `declined`, `cancelled`, `settle_failed`. Each is explained in [Paid tests](https://app.decalabs.ai/docs/guides/paid-tests#the-states). |
| `next` | What happens next, in a sentence. |
| `result` | At `done`: `verdict` (`pass` or `miss`), `confirmed` sign-ups and the `pass_line`. While `live`: the count so far. |
| `refund` | Money owed back, such as ad budget not spent: `owed`, then `sent` with its transaction. |
| `simulated` | `true` on a sandbox test, which moves through its states in about seven minutes. |

A test that has no answer from you is never lost: a test left in `settling` is looked up on Base and moved on. A test you cannot read answers `404 test_not_found`.

> **Tip** · Instead of reading again and again, give `start_test` a `webhook_url` and be told at every change. See [Webhooks](https://app.decalabs.ai/docs/guides/paid-tests#webhooks).

Source: https://app.decalabs.ai/docs/tools/get-test
