> ## Documentation Index
> Fetch the complete documentation index at: https://docs.argalabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GET Get a twin reset operation

> Poll durable reset progress and read its terminal result without replaying writes

```text theme={null}
GET /twin-runs/{run_id}/resets/{operation_id}
```

Poll an operation created by [Start a twin reset](https://docs.argalabs.com/api-reference/post-start-twin-reset.md). Authenticate with an [Arga API key](https://docs.argalabs.com/api-reference/auth.md) that owns the run. Both path parameters are UUIDs.

```bash theme={null}
curl "https://api.argalabs.com/twin-runs/$RUN_ID/resets/$OPERATION_ID" \
  --header "Authorization: Bearer $ARGA_API_KEY"
```

## Response

HTTP `200` returns the operation, including failed or cancelled outcomes. Check `status` before using the environment.

```json theme={null}
{
  "operation_id": "22222222-2222-4222-8222-222222222222",
  "run_id": "11111111-1111-4111-8111-111111111111",
  "status": "queued",
  "stage": "queued",
  "created_at": "2026-11-18T22:00:00+00:00",
  "stage_started_at": "2026-11-18T22:00:00+00:00",
  "completed_at": null,
  "timeout_seconds": 900,
  "error": null,
  "error_code": null,
  "result": null,
  "status_url": "/twin-runs/11111111-1111-4111-8111-111111111111/resets/22222222-2222-4222-8222-222222222222"
}
```

| Field | Type | Description |
| - | - | - |
| `operation_id` | string | Reset operation UUID. |
| `run_id` | string | Owning Twin Run UUID. |
| `status` | string | `queued`, `running`, `succeeded`, `failed`, or `cancelled`. The last three are terminal. |
| `stage` | string | Progress stage: `queued`, `resetting`, or `seeding`; the terminal status after completion. |
| `created_at` | string | UTC admission timestamp. |
| `stage_started_at` | string or null | Timestamp for the current stage. |
| `completed_at` | string or null | Terminal outcome timestamp. |
| `timeout_seconds` | integer | Server reset budget, including queue time. Defaults to 900 seconds. |
| `error` | string or null | Error or cancellation message. |
| `error_code` | string or null | `twin_reset_failed`, `twin_reset_timeout`, or `twin_reset_cancelled` when applicable. |
| `result` | object or null | Per-twin result when available for a terminal operation. Includes `run_id`, `status`, `baseline_kind`, `factory_reset`, and `seed_results`. |
| `status_url` | string | Relative URL for this operation. |

The response includes `Retry-After: 2` and `Cache-Control: no-store`. Resume polling the same URL after a lost connection. GET requests do not replay reset writes.

After `succeeded`, the run returns to `ready`. On `failed`, inspect the error and reprovision. A `cancelled` operation does not revive a run that expired or was torn down.

## Errors

| HTTP status | Meaning |
| - | - |
| `401` / `403` | Authentication or access is denied. |
| `404` | The run or the reset operation was not found for the authenticated owner. |
| `422` | A path parameter is not a UUID. |

See [Reset Twin Runs](https://docs.argalabs.com/features/twin-resets.md) for retry rules and a polling example.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.