> For the complete documentation index, see [llms.txt](https://relationlabs.gitbook.io/relation-one-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://relationlabs.gitbook.io/relation-one-api/api-zh/guide/js-sdk.md).

# JS-SDK使用说明

## Relation-Auth JS-SDK

集成了身份认证功能。方便的获取用户身份，生成addressAuthToken。

{% content-ref url="/pages/720UdEzZKhByeDhyFDf6" %}
[快速开始](/relation-one-api/api-zh/js-sdk/relation-auth/quick-start.md)
{% endcontent-ref %}

## IM JS-SDK

只需要通过一些简单的api调用，你就可以构建一个即时通讯应用。

{% content-ref url="/pages/MNlfurzsTpoJrelgUNV5" %}
[快速开始](/relation-one-api/api-zh/js-sdk/im-js-sdk/quick-start.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://relationlabs.gitbook.io/relation-one-api/api-zh/guide/js-sdk.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.
