> ## 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) 端點取得與主要設定檔關聯的所有使用者設定檔。逐一篩選回傳的設定檔，找出與建立使用者設定檔時所提供標題相符的 `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" />
