# API

{% hint style="danger" %}
自 2025 年 9 月 15 日起，[旧版 API 已弃用](https://documenter.getpostman.com/view/10917935/Uz5KjZ8k)，不再受支持。请迁移到新版 API，以确保服务不中断。
{% endhint %}

### 基URL

**`https://resi-api.iproyal.com/v1`**

### 授权（Authorization）

身份验证通过 **`Authorization`** header进行管理。为了确保安全访问，所有请求都必须包含此header（标头），后跟您的API令牌，以单词“Bearer”加一个空格作为前缀。格式应为:&#x20;

**`Authorization`**`:`**`Bearer <your_api_token>`**

您的API令牌可在仪表板的“API”部分的设置页面中找到。在这里，如果需要，您也可以重置您的令牌。确保其安全，并在重置后使用新令牌更新您的应用程序。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.iproyal.com/cn/dai-li/huang-jia-zhu-zhai-dai-li/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
