# Get Accounting Tax Token

Lists the tokens with accounting records for a coldkey during the requested date range.

_Source: https://beta.taostats.io/docs/api-reference/accounting/get-accounting-tax-token_

_Last reviewed: 2026-09-18_

```http
GET https://api.taostats.io/api/accounting/tax_token/v1
```

Requires an API key in the `Authorization` header.

Lists the tokens with accounting records for a coldkey during the requested date range. Use the returned token identifiers when requesting the JSON or CSV accounting report.

## Try it

Try this request in the browser on the HTML version of this page, or use the code samples below.

### Examples

List which tokens a wallet held tax events for in Q1 2025 (call this first)

```text
https://api.taostats.io/api/accounting/tax_token/v1?coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n&date_start=2025-01-01&date_end=2025-03-31
```

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/api/accounting/tax_token/v1?date_start=2025-01-01&date_end=2025-03-31&coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n"
```

**JavaScript**

```js
const response = await fetch('https://api.taostats.io/api/accounting/tax_token/v1?date_start=2025-01-01&date_end=2025-03-31&coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n', {
  headers: {
    Authorization: '<YOUR_API_KEY>',
  },
});
const data = await response.json();
```

**Python**

```python
import requests

response = requests.get(
    "https://api.taostats.io/api/accounting/tax_token/v1?date_start=2025-01-01&date_end=2025-03-31&coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `date_start` | query | `string (date)` | Yes | Start of date range in YYYY-MM-DD format (inclusive) |
| `date_end` | query | `string (date)` | Yes | End of date range in YYYY-MM-DD format (inclusive). Must be within 12 calendar months of date_start. |
| `coldkey` | query | `string` | Yes | SS58 or hex format |

## Responses

### `200` — Tokens retrieved successfully

| Field | Type | Required |
| --- | --- | --- |
| `data` | `array` | Yes |
| `data[]` | `string` | Yes |
| `pagination` | `object` | Yes |
| `pagination.current_page` | `integer (int32)` | Yes |
| `pagination.next_page` | `integer (int32), nullable` |  |
| `pagination.per_page` | `integer (int32)` | Yes |
| `pagination.prev_page` | `integer (int32), nullable` |  |
| `pagination.total_items` | `integer (int32)` | Yes |
| `pagination.total_pages` | `integer (int32)` | Yes |

### Other responses

| Status | Meaning |
| --- | --- |
| `400` | Bad request |
| `404` | Tokens not found |
| `500` | Internal server error |

Every request needs an `Authorization` header holding your API key — see [Getting started with the Taostats API](https://beta.taostats.io/docs/start-here/getting-started-with-taostats-api).
