> 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). Agents can also search and read this documentation through its [MCP server](https://docs.coda.co/~gitbook/mcp).

# UserSync API 请求

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

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

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

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

<figure><img src="https://content.gitbook.com/content/rtIMNO1E8C0Uq9wMQU8c/blobs/MFwQW93Uc2DsQphRhSy8/gamer%20id1.png" alt=""><figcaption><p>用户验证请求</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/rtIMNO1E8C0Uq9wMQU8c/blobs/L2suQ7PYTmcfoAn6ODfM/gamer%20id2.png" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
