---
title: GET /v1/usdhb/withdrawals
---

# `GET /v1/usdhb/withdrawals`

List USDhb withdrawals

The account's USDhb withdrawals, requested and paid.

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/withdrawals" \
  -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/withdrawals",
    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/withdrawals`, {
  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-withdrawals"></span>`withdrawals` · object[] · required
    - <span id="res-200-withdrawals-withdrawalId"></span>`withdrawalId` · string · required
    - <span id="res-200-withdrawals-usdhb"></span>`usdhb` · string · required
    - <span id="res-200-withdrawals-sparkAddress"></span>`sparkAddress` · string · required
    - <span id="res-200-withdrawals-state"></span>`state` · enum(`requested`, `paid`) · required
    - <span id="res-200-withdrawals-issuerRef"></span>`issuerRef` · string \| null · required
    - <span id="res-200-withdrawals-requestedTsMs"></span>`requestedTsMs` · string · unit `ms` · required
    - <span id="res-200-withdrawals-paidTsMs"></span>`paidTsMs` · string \| null · unit `ms` · required

Example `200` response:

```json
{
  "withdrawals": [
    {
      "withdrawalId": "string",
      "usdhb": "string",
      "sparkAddress": "string",
      "state": "requested",
      "issuerRef": "string",
      "requestedTsMs": "100000",
      "paidTsMs": "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.
