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

# endstate.chipReplacements.get

> Returns the status of a chip replacement. Poll until status is `confirmed`.

```ts theme={null}
get(unitId: string, replacementId: string, options?: RequestOptions): Promise<ChipReplacement>
```

|             |                                                                                                             |
| ----------- | ----------------------------------------------------------------------------------------------------------- |
| Endpoint    | [`GET /v1/units/{unit_id}/chip-replacements/{replacement_id}`](/api-reference/chips/get-a-chip-replacement) |
| Credential  | Secret key (`end_sk_...`)                                                                                   |
| Retry class | `read`                                                                                                      |

Retried on network failure, timeout, `429`, and `5xx`.

## Example

```ts theme={null}
const result = await endstate.chipReplacements.get(unit.id, replacement.id);
```

## Parameters

<ParamField body="unit_id" type="string" required />

<ParamField body="replacement_id" type="string" required />

## Returns

`200` - `ChipReplacement`.

<ResponseField name="id" type="string" required />

<ResponseField name="unit_id" type="string" required />

<ResponseField name="old_chip_id" type="string" required>
  The chip being retired from the unit.
</ResponseField>

<ResponseField name="new_chip_id" type="string" required>
  The chip replacing it.
</ResponseField>

<ResponseField name="status" type="'prepared' | 'submitted' | 'confirmed' | 'failed'" required>
  Replacement progress. Poll until `confirmed`; `failed` is terminal.
</ResponseField>

<ResponseField name="created_at" type="string" required />

## Errors

Branch on `error.code`, never on the HTTP status - several codes share one.

| Code                         | HTTP | Retry         |
| ---------------------------- | ---- | ------------- |
| `auth.unauthorized`          | 401  | Do not retry  |
| `chip_replacement.not_found` | 404  | Do not retry  |
| `internal.error`             | 500  | Safe to retry |
| `validation.failed`          | 400  | Do not retry  |

See [Errors and retries](/sdks/core/errors-and-retries) for the error types and how to narrow them.
