# GET /automations/:automation_id/last-test

**Resource:** [Automations](./automations.md)  
**MCP tool:** `get_automation_last_test`  
**Scopes:** `automations:read`  
**Write operation:** no

Has this automation really worked since its steps were last saved? Reads its latest whole run (a Test, a test card moved into its column, or a real customer; single-step tests do not count). state: passed (every step worked) | failed (a step failed; error explains it in plain words with the one place to fix it) | did_nothing (its Only run if check did not match, or every step was left out) | running | none (no whole run yet). Also: at, run_id, was_test, summary (one plain sentence). Getting Started only finalizes an automation once this is passed. To test one, use trigger_automation with a contact_id or deal_id in trigger_data.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `automation_id` | path | string | yes |  |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/automations/:automation_id/last-test"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`