# 查看邮件 API ## 通过 HTTP API 查看邮件 这是一个 `python` 的例子,使用 `requests` 库查看邮件。 ```python limit = 10 offset = 0 res = requests.get( f"http://localhost:8787/api/mails?limit={limit}&offset={offset}", headers={ "Authorization": f"Bearer {你的JWT密码}", # "x-custom-auth": "<你的网站密码>", # 如果启用了自定义密码 "Content-Type": "application/json" } ) ```