> For the complete documentation index, see [llms.txt](https://docs.coda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/ji-cheng-zhi-nan/usersync-api-qing-qiu.md).

# UserSync API 请求

UserSync API 是 Coda 个性化销售功能的核心组成部分。当用户登录商店或提交其游戏/用户 ID 时触发。该接口执行两个关键功能：

* **用户验证与信息补充：**&#x7528;于验证用户身份，并获取关键身份信息（例如：用户在应用中的昵称），从而确保用户体验的个性化与熟悉感。
* **数据同步：**&#x5C06;用户在应用内的行为、购买记录和用户分群等数据同步到 Coda，支持预设规则和动态个性化销售策略。

通过使用 UserSync API，合作伙伴可以轻松将其应用内个性化逻辑与应用外销售渠道对齐，从而提升用户参与度、改善转化率，最终增加收入。

UserSync API 请求的预期响应时间为 3 秒。

<figure><img src="/files/WNGF4dHplzIoHD5TPEEy" alt=""><figcaption><p>用户验证请求</p></figcaption></figure>

<figure><img src="/files/jioEPi2AydL5iU2O7H3m" alt=""><figcaption><p>用户验证响应</p></figcaption></figure>

<br>


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/ji-cheng-zhi-nan/usersync-api-qing-qiu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
