> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 如何获取用户资料的 refId | Ayrshare 文档

> 了解如何查找并获取 Ayrshare 中用户资料的 refId、其用途，以及如何用它管理多个已连接的账号。

本页说明如何获取用户资料的 `refId`。

## 背景

在[创建用户资料](/apis/profiles/create-profile)时，你会在响应中收到四个字段：

```json theme={"system"}
{
    "status": "success",
    "title": "Digg It",
    "refId": "140b8709bd6ade099b242d895e268fb886130c53",
    "profileKey": "7TVRLEZ-24A43C0-NJW0Z82-F11984N"
}
```

请务必在你的系统中安全地保存 `refId` 与 `profileKey`。`profileKey` 用于为特定用户资料发起 API 请求，而 `refId` 则是 Ayrshare 在 API 调用中引用该用户资料的方式。

## 获取 RefId 的方法

有两种方法可获取用户资料的 `refId`。

1. 使用 [Get User Profiles](/apis/profiles/get-profiles) 端点获取与主资料相关联的所有用户资料。遍历返回的每个资料，找到与创建用户资料时提供的 title 对应的 `refId`。（注意：该端点不会返回每个用户资料的 `profileKey`，因此你无法通过它将 `refId` 与已有的 `profileKey` 相关联。）

2. 前往 Ayrshare 仪表盘中的 User Profiles 页面。滚动或搜索相关的用户资料，即可在此查看该用户资料的 `refId`。

<img src="https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/help-center/technical-support/refId_retrieval.webp?fit=max&auto=format&n=dKBti0xVDJrOZ19f&q=85&s=85d75053946846782a04ef087d8bf26d" alt="retrieve refId" class="center" width="3856" height="2676" data-path="images/help-center/technical-support/refId_retrieval.webp" />
