> For the complete documentation index, see [llms.txt](https://reno.gitbook.io/smtp-py/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://reno.gitbook.io/smtp-py/tokens/list-tokens.md).

# List Tokens

Returns a list of tokens.

### Mục lục nhanh

* [Ví dụ](#vi-du)
* [Tham số](#tham-so)
* [Giá trị trả về](#gia-tri-tra-ve)

### Ví dụ

{% code title="list\_tokens.py" %}

```python
from smtppy import SMTPDevClient

client = SMTPDevClient(api_key="YOUR_API_KEY")

tokens = client.list_tokens(page=1)
print(tokens)
```

{% endcode %}

### Tham số

| Tên    | Kiểu  | Bắt buộc | Mặc định | Mô tả                    |
| ------ | ----- | -------- | -------- | ------------------------ |
| `page` | `int` | ❌        | `1`      | Số trang của collection. |

### Giá trị trả về

* `dict[str, Any]`: JSON do API trả về.

{% hint style="info" %}
Method này gọi endpoint `GET /tokens` với query `page`.
{% endhint %}
