---
title: GET /v1/usdhb/unstakes
---

# `GET /v1/usdhb/unstakes`

List unstake requests

The account's unstake requests, cooling and released.

Money, price, rate and count fields cross the wire as decimal strings; units are shown beside each field ([Wire encoding](/api/wire-encoding)). Group: [Usdhb](/api/reference/usdhb/).

**Auth:** API key (`x-api-key`)

**Scope:** `read`

**Rate limit:** the `read` budget ([Rate limits](/api/rate-limits))

**Effect:** `read`: reads only

## Request

```bash [curl]
curl -fsS "$HB/v1/usdhb/unstakes" \
  -H "x-api-key: $HB_KEY"
```

```python [Python]
import os

import requests

HB = os.environ.get("HB", "https://testnet.hardbasis.com")

resp = requests.get(
    f"{HB}/v1/usdhb/unstakes",
    headers={
        "x-api-key": os.environ["HB_KEY"],
    },
)
resp.raise_for_status()
print(resp.json())
```

```ts [TypeScript]
const HB = process.env.HB ?? "https://testnet.hardbasis.com";

const res = await fetch(`${HB}/v1/usdhb/unstakes`, {
  method: "GET",
  headers: {
    "x-api-key": process.env.HB_KEY!,
  },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());
```

## Responses

- **200**: OK
  - <span id="res-200-unstakes"></span>`unstakes` · object[] · required
    - <span id="res-200-unstakes-unstakeId"></span>`unstakeId` · string · required
    - <span id="res-200-unstakes-susdhb"></span>`susdhb` · string · required
    - <span id="res-200-unstakes-requestedTsMs"></span>`requestedTsMs` · string · unit `ms` · required
    - <span id="res-200-unstakes-releaseAtMs"></span>`releaseAtMs` · string · unit `ms` · required
    - <span id="res-200-unstakes-state"></span>`state` · enum(`cooling`, `released`) · required
    - <span id="res-200-unstakes-releasedUsdhb"></span>`releasedUsdhb` · string \| null · required
    - <span id="res-200-unstakes-releasedTsMs"></span>`releasedTsMs` · string \| null · unit `ms` · required

Example `200` response:

```json
{
  "unstakes": [
    {
      "unstakeId": "string",
      "susdhb": "string",
      "requestedTsMs": "100000",
      "releaseAtMs": "100000",
      "state": "cooling",
      "releasedUsdhb": "string",
      "releasedTsMs": "100000"
    }
  ]
}
```

## Errors

Every refusal carries a stable `code` from [`ErrorCode`](/api/reference/all#errorcode) beside human `error` prose; match on the code. See [Errors](/api/errors).

- **401**: A refusal carrying a stable machine `code` (ErrorCode) beside human `error` prose.
- **403**: A refusal carrying a stable machine `code` (ErrorCode) beside human `error` prose.
- **429**: A token bucket is exhausted.
