---
title: 傳送 Verification Portal 連結給終端客戶
url: https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles-verification-portal
description: 為使用者設定檔建立註冊連結、了解您的終端客戶在 Verification Portal 中會進行哪些操作，並在之後查看哪些計畫適用於該設定檔。
---

Anthropic 提供一些計畫，組織可以在 Verification Portal 中申請。若要讓「end customer」（終端客戶）透過您的平台使用 Claude 時套用其已獲得的核准，終端客戶需要在入口網站中將其「user profile」（使用者設定檔）連結到自己的 Anthropic 組織。由您啟動此流程：為該設定檔建立「enrollment link」（註冊連結），並將其提供給終端客戶。

使用者設定檔會告訴 Anthropic 每個 API 請求是為您的哪一位終端客戶發出的。您需要為每位終端客戶建立一個設定檔，並在您代表他們發出的每個請求中傳送其 `uprof_` ID。設定檔必須先存在，您才能為其建立連結。若要建立設定檔，請參閱[用於終端客戶歸屬的使用者設定檔](https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles)。

如果您只需要「attribution」（歸屬），或您的組織尚未啟用建立註冊連結的功能，可以略過本頁。

## 建立連結

若要為設定檔建立註冊連結，請呼叫 `POST /v1/user_profiles/{id}/action_urls`，並在路徑中帶入設定檔的 ID。在請求主體中，請將 `action.type` 設為 `enroll_end_user`。

如果您的組織尚未啟用建立註冊連結的功能，此呼叫會傳回 `404`。這與找不到設定檔 ID 時的狀態碼相同，因此請先檢查 ID。

<CodeGroup>
  ```bash cURL
  curl https://api.anthropic.com/v1/user_profiles/uprof_011CZkZCu8hGbp5mYRQgUmz9/action_urls \
    -H "x-api-key: $ANTHROPIC_API_KEY" \
    -H "anthropic-version: 2023-06-01" \
    -H "content-type: application/json" \
    -d '{"action": {"type": "enroll_end_user"}}'
  ```

  ```bash CLI
  ant user-profiles:action-urls create \
    --user-profile-id uprof_011CZkZCu8hGbp5mYRQgUmz9 \
    --action '{type: enroll_end_user}'
  ```

  ```python Python
  client = anthropic.Anthropic()

  action_url = client.user_profiles.action_urls.create(
      "uprof_011CZkZCu8hGbp5mYRQgUmz9",
      action={"type": "enroll_end_user"},
  )

  print(action_url.url)
  ```

  ```typescript TypeScript
  const client = new Anthropic();

  const actionURL = await client.userProfiles.actionURLs.create(
    "uprof_011CZkZCu8hGbp5mYRQgUmz9",
    { action: { type: "enroll_end_user" } }
  );

  console.log(actionURL.url);
  ```

  ```csharp C#
  using Anthropic.Models.UserProfiles.ActionUrls;

  AnthropicClient client = new();

  var actionUrl = await client.UserProfiles.ActionUrls.Create(
      "uprof_011CZkZCu8hGbp5mYRQgUmz9",
      new() { Action = new UserProfileEnrollEndUserAction() }
  );

  Console.WriteLine(actionUrl.Url);
  ```

  ```go Go
  client := anthropic.NewClient()

  actionURL, err := client.UserProfiles.ActionURLs.New(
  	context.Background(),
  	"uprof_011CZkZCu8hGbp5mYRQgUmz9",
  	anthropic.UserProfileActionURLNewParams{
  		Action: anthropic.UserProfileActionUnionParam{
  			OfEnrollEndUser: &anthropic.UserProfileEnrollEndUserActionParam{},
  		},
  	},
  )
  if err != nil {
  	log.Fatal(err)
  }

  fmt.Println(actionURL.URL)
  ```

  ```java Java
  import com.anthropic.models.userprofiles.actionurls.ActionUrlCreateParams;
  import com.anthropic.models.userprofiles.actionurls.UserProfileEnrollEndUserAction;

  void main() {
      AnthropicClient client = AnthropicOkHttpClient.fromEnv();

      var params = ActionUrlCreateParams.builder()
          .userProfileId("uprof_011CZkZCu8hGbp5mYRQgUmz9")
          .action(UserProfileEnrollEndUserAction.builder().build())
          .build();
      var actionUrl = client.userProfiles().actionUrls().create(params);

      IO.println(actionUrl.url());
  }
  ```

  ```php PHP
  $client = new Client();

  $actionURL = $client->userProfiles->actionURLs->create(
      'uprof_011CZkZCu8hGbp5mYRQgUmz9',
      action: ['type' => 'enroll_end_user'],
  );

  echo $actionURL->url, PHP_EOL;
  ```

  ```ruby Ruby
  client = Anthropic::Client.new

  action_url = client.user_profiles.action_urls.create(
    "uprof_011CZkZCu8hGbp5mYRQgUmz9",
    action: { type: :enroll_end_user }
  )

  puts action_url.url
  ```
</CodeGroup>

回應中包含連結及其失效時間：

```json
{
  "type": "user_profile_action_url",
  "url": "https://portal.anthropic.com/enroll?enrollment_token=...",
  "expires_at": "2026-03-15T11:00:00Z"
}
```

連結在 `expires_at` 所示的時間之前有效，大約是建立後一小時。請在終端客戶要求時才建立連結，例如當他們點擊您產品中的按鈕時，而不是事先放在他們可能稍後才閱讀的電子郵件中。在連結到期之前，他們可以多次開啟該連結。如果連結已到期，請建立新的連結：每次呼叫都會傳回一個新的連結。建立新連結不會使先前的連結失效。

任何持有連結的人都可以在其到期前使用它，因此請只將連結提供給對應的終端客戶。請將連結傳送給終端客戶 Anthropic 組織的管理員或擁有者，因為只有管理員或擁有者才能連結設定檔。請勿自行解析 URL 或建構 URL，其格式可能會變更。

如果您使用的是 Claude Platform on AWS，請改用 `POST /v1/user_profiles/{id}/enrollment_url` 建立連結，並傳送 `anthropic-beta: user-profiles-2026-08-18` 標頭。該請求不需要請求主體，回應中包含相同的 `url` 和 `expires_at` 欄位。在 SDK 和 CLI 中，該呼叫位於 beta 命名空間：`client.beta.user_profiles.create_enrollment_url()` (typescript: `client.beta.userProfiles.createEnrollmentURL()`; csharp: `client.Beta.UserProfiles.CreateEnrollmentUrl()`; go: `client.Beta.UserProfiles.NewEnrollmentURL()`; java: `client.beta().userProfiles().createEnrollmentUrl()`; php: `$client->beta->userProfiles->createEnrollmentURL()`; cli: `ant beta:user-profiles create-enrollment-url`)。

`POST /v1/user_profiles/{id}/action_urls` 在 Microsoft Foundry 上無法使用。

## 終端客戶會看到什麼

連結會開啟位於 `portal.anthropic.com` 的 Anthropic Verification Portal。終端客戶登入後，入口網站會向他們顯示您的 Anthropic 組織名稱以及設定檔的 ID。

<Steps>
  <Step title="登入">
    終端客戶使用 Anthropic 帳戶登入：可以是他們已用於 Claude Console 或 claude.ai 的帳戶，也可以是在此步驟中新建立的帳戶。入口網站會維持自己的登入工作階段，與 Claude Console 和 claude.ai 分開。如果他們隸屬於多個組織，則需選擇要連結的組織。

    <Frame caption="登入前，終端客戶會看到他們被導向入口網站的原因。">
      ![標題為 Link your account to apply for trusted access 的 Verification Portal 卡片，附有 Continue to log in 按鈕。](https://platform.claude.com/docs/images/user-profiles/portal-log-in.png)
    </Frame>
  </Step>

  <Step title="連結設定檔">
    入口網站會顯示一張標題為 **Link your partner profile** 的卡片。卡片上列出您的平台名稱、設定檔的 ID、終端客戶的組織，以及邀請的到期時間。終端客戶選擇 **Link profile** 以接受，或選擇 **Skip for now** 以不連結而直接進入入口網站。

    <Frame caption="終端客戶確認設定檔要連結到哪個組織。">
      ![標題為 Link your partner profile 的 Verification Portal 卡片，顯示合作夥伴、設定檔 ID、組織及到期時間。](https://platform.claude.com/docs/images/user-profiles/portal-link-profile.png)
    </Frame>

    只有組織的管理員或擁有者才能連結設定檔。其他人會看到 **Admin access needed**，且無法連結設定檔。他們可以切換到自己擔任管理員或擁有者的組織。否則，請告知終端客戶必須由其 Anthropic 組織的管理員或擁有者開啟該連結。
  </Step>

  <Step title="查看確認訊息">
    入口網站會以 **Profile linked** 確認連結完成。終端客戶會留在入口網站中，可以在此查看其組織可用的計畫並提出申請。

    <Frame caption="連結完成後，終端客戶會留在入口網站中。">
      ![標題為 Profile linked 的 Verification Portal 確認畫面，附有 View programs 和 View linked accounts 按鈕。](https://platform.claude.com/docs/images/user-profiles/portal-profile-linked.png)
    </Frame>
  </Step>
</Steps>

如果管理員或擁有者開啟連結並登入時連結已到期，入口網站會顯示 **This invitation has expired**，並告知他們向您索取新的連結。

一個設定檔只能連結到一個組織。如果它已連結到其他組織，入口網站會顯示 **This partner profile is already linked to a different organization**，且不會進行連結。該設定檔所連結組織的管理員或擁有者可以在入口網站的 **Linked accounts** 下將其解除連結。之後，請建立新連結並傳送給終端客戶。

## 終端客戶連結設定檔之後

入口網站不會將終端客戶導回您的產品，Anthropic 也不會通知您。請在您自己的介面中告知終端客戶完成後返回。

連結本身不會核准任何事項。它會將設定檔連接到終端客戶的組織，使該組織已獲核准的計畫適用於帶有該設定檔 ID 的請求。設定檔中沒有表示其已連結的欄位。

若要查看哪些計畫適用於某個設定檔，請[擷取該設定檔](https://platform.claude.com/docs/zh-TW/api/beta/user_profiles/retrieve)並讀取 `programs`。它為每個計畫提供一個鍵，例如 `cyber` 和 `efs`，且每個設定檔都包含所有鍵。每個鍵的值為下列其中之一：

* `null`：Anthropic 沒有該計畫的狀態可回報。如果 Anthropic 尚未為您的組織啟用計畫，則所有鍵都是 `null`。
* 物件：當 Anthropic 已核准終端客戶參與該計畫時，其 `status` 為 `active`，否則為 `pending` 或 `rejected`。

終端客戶可以在入口網站的 **Linked accounts** 下看到已連結的設定檔。

如果您的推論在 Claude in Amazon Bedrock 或 Google Cloud 上執行，您也必須連結您自己的帳戶。只有在您將 AWS 帳戶或 Google Cloud 專案連結到建立您設定檔的 Anthropic 組織之後，計畫才會適用於來自該帳戶或專案的請求。請參閱[在 Amazon Bedrock 和 Google Cloud 上歸屬請求](https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles#attribute-requests-on-amazon-bedrock-and-google-cloud)。

## 後續步驟

若要了解擷取的設定檔所包含的每個欄位，請參閱[擷取設定檔](https://platform.claude.com/docs/zh-TW/api/beta/user_profiles/retrieve)參考文件。

若要建立設定檔、在請求中傳送其 ID 並保持其為最新狀態，請參閱[用於終端客戶歸屬的使用者設定檔](https://platform.claude.com/docs/zh-TW/manage-claude/user-profiles)。
