---
title: 연결된 고객 관리
url: https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/manage-customers
description: "연결된 고객을 확인하고 관리합니다: 사용량을 확인하고, 연결을 해제하거나 다시 연결하며, 다른 조직으로 이동하거나 API 키에서 전환합니다."
---

<Warning>
  Claude Platform OAuth는 Beta Service로, [상업 서비스 약관](https://www.anthropic.com/legal/commercial-terms) 및 [서비스별 약관](https://www.anthropic.com/legal/service-specific-terms) 등 Anthropic과 체결한 계약에 따라 제공되는 출시 전 소프트웨어입니다. 베타 기간 동안 엔드포인트, 매개변수 및 동작이 변경될 수 있습니다. 프로덕션 환경에서 사용하기에 적합하지 않을 수 있습니다.
</Warning>

고객이 연결한 후에는 Claude Console과 백엔드에서 고객을 관리합니다. 각 고객은 조직 내에 [사용자 프로필](https://platform.claude.com/docs/ko/manage-claude/user-profiles)을 가지며, 이는 고객을 연결하기 위해 생성한 것입니다. 연결하면 연결이 생성되며, 이는 고객의 Claude 조직을 해당 프로필에 묶는 레코드입니다.

## 시작하기 전에

* **고객의 ID:** [고객을 연결](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/link-and-bill-a-customer#save-the-connection-and-its-tokens)할 때 저장한 사용자 프로필 ID(`uprof_…`)와 `connection_id`(`ocon_…`).
* **고객의 상태를 확인하거나 연결 해제 엔드포인트를 사용하려면:** [Workload Identity Federation](https://platform.claude.com/docs/ko/manage-claude/workload-identity-federation)의 액세스 토큰을 가진 앱의 [운영자 서비스 계정](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/set-up-your-app#service-account). 토큰은 기본값인 `workspace:developer` 스코프를 가진 페더레이션 규칙에서 발급된 것이어야 합니다.
* **`auth.claude.com`을 통해 연결을 해제하려면:** 앱의 [클라이언트 인증](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/set-up-your-app#set-up-client-authentication). 샘플은 `CLIENT_ASSERTION_FILE` 환경 변수가 지정하는 파일에서 클라이언트 어설션을 읽습니다. 또는 `YOUR_CLIENT_ASSERTION_JWT` 자리에 직접 붙여 넣을 수도 있습니다. 이는 앱의 **Expected audience**에 대한 JWT입니다.
* **백엔드에서 사용량을 읽으려면:** [Admin API 자격 증명](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/manage-customers#if-you-read-usage-from-your-back-end).

## 고객 및 사용량 보기

Console에서 [User profiles](https://platform.claude.com/user-profiles) 페이지를 여세요. 앱의 **Overview** 탭에도 연결된 고객이 나열됩니다. User profiles 페이지에는 각 사용자 프로필에 대해 최근 28일 동안의 **Requests**, **Tokens**, **Your spend**가 표시됩니다. 프로필을 클릭하면 최근 7일, 28일 또는 90일 동안의 사용량을 볼 수 있습니다.

* 활성 연결이 있는 프로필은 **Linked**, 연결이 종료된 프로필은 **Unlinked**, 한 번도 연결된 적이 없는 프로필은 **Not linked**로 표시됩니다. Admin 역할을 가진 구성원만 이러한 상태와 **Unlink**를 볼 수 있습니다.
* **Your spend**는 Anthropic이 크레딧을 적용하기 전, 해당 프로필의 요청에 대한 귀하 자신의 비용입니다.
* 고객이 비용을 지불하는 요청은 **Requests**와 **Tokens**에 추가되며 **Your spend**에는 아무것도 추가되지 않습니다.
* 이 페이지에는 고객이 지불한 금액이나 고객의 요금이 표시되지 않습니다.

수치는 약 1시간마다 갱신되며, 요청이 표시되기까지 몇 시간이 걸릴 수 있습니다.

이 수치를 사용하여 고객의 사용량을 귀하가 선택한 금액에서 중단시키지 마세요. 그 역할은 고객 자신의 [지출 한도](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/what-your-customers-see#spend-caps)가 수행합니다.

## 고객이 연결되어 있는지 확인하기

백엔드에서 고객의 사용자 프로필 ID로 `GET /v1/user_profiles/{id}`를 호출하세요. `oauth_app_id`에 앱의 클라이언트 ID를 보내고, `user-profiles-search-2026-08-30` 베타 헤더를 보내세요. 운영자 서비스 계정으로 인증하세요. SDK는 `oauth_app_id`를 보내지 않으므로 샘플은 HTTP로 엔드포인트를 호출합니다.

이 샘플에서 `ANTHROPIC_AUTH_TOKEN`은 서비스 계정의 액세스 토큰을 담고 있으며, 이 토큰은 [워크로드에서 가져옵니다](https://platform.claude.com/docs/ko/manage-claude/workload-identity-federation#authenticate-from-your-workload). 이 변수는 cURL을 실행하는 곳에서만 설정하세요. SDK와 CLI는 페더레이션 대신 이 변수를 사용하게 됩니다.

<CodeGroup exclude="shell:CLI, python, typescript, csharp, go, java, php, ruby">
  ```bash cURL
  curl "https://api.anthropic.com/v1/user_profiles/uprof_01HV9Z?oauth_app_id=clid_01ABcDeFgHiJkLmNoPqRsTuV" \
    -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
    -H "anthropic-version: 2026-10-21" \
    -H "anthropic-beta: user-profiles-search-2026-08-30"
  ```
</CodeGroup>

응답에서 `connection_status.type`은 프로필과 앱 간의 연결을 설명합니다:

| `connection_status.type` | Console에서 | 의미 |
| ----- | ----- | ----- |
| `connected` | **Linked** | 앱에 대한 연결이 활성 상태입니다 |
| `disconnected` | **Unlinked** | 프로필이 연결된 적이 있으며, 해당 연결이 종료되었습니다 |
| `not_connected` | **Not linked** | 프로필이 앱에 연결된 적이 없습니다 |

`connected` 상태가 요청이 고객에게 청구된다는 것을 보장하지는 않습니다. 고객에게 청구하는 모든 요청에서 두 가지 `403` 코드와 두 가지 `402` [결제 오류](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/errors#while-billing)를 처리하세요.

`disconnected` 프로필의 경우 다음 필드가 추가 정보를 제공합니다. 나열된 사유는 예시입니다:

| 필드 | 의미 |
| ----- | ----- |
| `last_revoked_at` | 마지막 연결이 종료된 시점 |
| `last_revoked_reason.type` | 사유. `revoked_by_admin`: Admin 또는 Billing 역할을 가진 고객 조직의 구성원이 앱의 연결을 해제했습니다. `revoked_by_app_owner`: 귀하의 조직 또는 백엔드가 고객의 연결을 해제했습니다. |

모든 상태에서 `oauth_connections.data`는 프로필과 앱 간의 연결을 최대 100개까지 나열하며, 목록이 불완전할 수 있는 경우 `truncated`가 설정됩니다.

## 고객 연결 해제하기

<Warning>
  연결을 해제하면 새로운 승인의 코드를 교환할 때까지 고객에게 청구되는 새 요청이 중단됩니다.
</Warning>

Console에서는 두 곳에서 고객의 연결을 해제할 수 있습니다:

* **앱의 Overview 탭:** **Linked customers** 아래에서 고객 행 메뉴의 **Unlink**는 해당 앱에 대한 연결만 종료합니다.
* **User profiles 페이지:** **Unlink**는 프로필의 행 메뉴와 프로필 페이지 오른쪽 상단에 있습니다. 테스트 앱을 포함하여 모든 앱에 대한 프로필의 연결을 종료합니다.

백엔드에서는 앱의 클라이언트 인증과 다음 중 하나를 포함하여 `auth.claude.com`에 해지 요청을 보내세요:

* **`connection_id`:** 해당 연결 하나를 종료합니다. 가지고 있다면 이것을 사용하세요.
* **`user_profile_id`:** `connection_id` 대신 보내면, 해당 프로필에 있는 앱의 모든 연결을 종료합니다. 여기에는 ID를 저장한 이후 고객이 만든 연결도 포함됩니다.

<CodeGroup exclude="shell:CLI">
  ```bash cURL
  curl https://auth.claude.com/v1/oauth/revoke \
    -H "content-type: application/json" \
    -d @- <<'JSON'
  {
    "connection_id": "ocon_01HV9Z",
    "client_id": "clid_01ABcDeFgHiJkLmNoPqRsTuV",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "client_assertion": "YOUR_CLIENT_ASSERTION_JWT"
  }
  JSON
  ```

  <CodeGroupItem language="CLI">
    `ant` CLI에는 `auth.claude.com`에 대한 명령이 없습니다. cURL 또는 애플리케이션의 언어로 요청을 보내세요.
  </CodeGroupItem>

  ```python Python
  import os
  from pathlib import Path

  import httpx2  # comes with the Anthropic SDK

  # 고객을 연결할 때 저장한 연결 ID
  connection_id = "ocon_01HV9Z"

  assertion_file = Path(os.environ["CLIENT_ASSERTION_FILE"])

  response = httpx2.post(
      "https://auth.claude.com/v1/oauth/revoke",
      json={
          "connection_id": connection_id,
          "client_id": "clid_01ABcDeFgHiJkLmNoPqRsTuV",
          "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
          "client_assertion": assertion_file.read_text().strip(),
      },
      timeout=10,
  )
  if not response.is_success:
      raise RuntimeError(f"Revoke failed: {response.status_code} {response.text}")

  print(response.json()["revoked_connection_ids"])
  ```

  ```typescript TypeScript
  import { readFile } from "node:fs/promises";

  // 고객을 연결할 때 저장한 연결 ID
  const connectionId = "ocon_01HV9Z";

  const jwt = await readFile(process.env.CLIENT_ASSERTION_FILE!, "utf8");

  const response = await fetch("https://auth.claude.com/v1/oauth/revoke", {
    method: "POST",
    redirect: "error",
    signal: AbortSignal.timeout(10_000),
    headers: { "content-type": "application/json" },
    body: JSON.stringify({
      connection_id: connectionId,
      client_id: "clid_01ABcDeFgHiJkLmNoPqRsTuV",
      client_assertion_type: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
      client_assertion: jwt.trim()
    })
  });
  if (!response.ok) {
    throw new Error(`Revoke failed: ${response.status} ${await response.text()}`);
  }

  const result = (await response.json()) as { revoked_connection_ids: string[] };
  console.log(result.revoked_connection_ids);
  ```

  ```csharp C#
  using System.Net.Http.Json;
  using System.Text.Json;

  // 고객을 연결할 때 저장한 연결 ID
  var connectionId = "ocon_01HV9Z";

  var assertionFile = Environment.GetEnvironmentVariable("CLIENT_ASSERTION_FILE")!;
  var jwt = await File.ReadAllTextAsync(assertionFile);

  using var http = new HttpClient { Timeout = TimeSpan.FromSeconds(10) };
  using var response = await http.PostAsJsonAsync(
      "https://auth.claude.com/v1/oauth/revoke",
      new Dictionary<string, string>
      {
          ["connection_id"] = connectionId,
          ["client_id"] = "clid_01ABcDeFgHiJkLmNoPqRsTuV",
          ["client_assertion_type"] = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
          ["client_assertion"] = jwt.Trim(),
      }
  );
  if (!response.IsSuccessStatusCode)
  {
      var details = await response.Content.ReadAsStringAsync();
      throw new HttpRequestException($"Revoke failed: {(int)response.StatusCode} {details}");
  }

  var result = await response.Content.ReadFromJsonAsync<JsonElement>();
  Console.WriteLine(result.GetProperty("revoked_connection_ids"));
  ```

  ```go Go
  import (
  	"bytes"
  	"encoding/json"
  	"fmt"
  	"io"
  	"log"
  	"net/http"
  	"os"
  	"strings"
  	"time"
  )

  func main() {
  	// 고객을 연결할 때 저장한 연결 ID
  	connectionID := "ocon_01HV9Z"

  	jwt, err := os.ReadFile(os.Getenv("CLIENT_ASSERTION_FILE"))
  	if err != nil {
  		log.Fatal(err)
  	}

  	body, err := json.Marshal(map[string]string{
  		"connection_id":         connectionID,
  		"client_id":             "clid_01ABcDeFgHiJkLmNoPqRsTuV",
  		"client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
  		"client_assertion":      strings.TrimSpace(string(jwt)),
  	})
  	if err != nil {
  		log.Fatal(err)
  	}

  	httpClient := &http.Client{Timeout: 10 * time.Second}
  	endpoint := "https://auth.claude.com/v1/oauth/revoke"
  	response, err := httpClient.Post(endpoint, "application/json", bytes.NewReader(body))
  	if err != nil {
  		log.Fatal(err)
  	}
  	defer response.Body.Close()
  	if response.StatusCode/100 != 2 {
  		details, _ := io.ReadAll(response.Body)
  		log.Fatalf("revoke failed: %d %s", response.StatusCode, details)
  	}

  	var result struct {
  		RevokedConnectionIDs []string `json:"revoked_connection_ids"`
  	}
  	if err := json.NewDecoder(response.Body).Decode(&result); err != nil {
  		log.Fatal(err)
  	}
  	fmt.Println(result.RevokedConnectionIDs)
  }
  ```

  ```java Java
  import module java.base;
  import module java.net.http;
  import com.fasterxml.jackson.databind.ObjectMapper; // Jackson comes with the Anthropic SDK

  void main() throws Exception {
      // 고객을 연결할 때 저장한 연결 ID
      var connectionId = "ocon_01HV9Z";

      var jwt = Files.readString(Path.of(System.getenv("CLIENT_ASSERTION_FILE")));

      var mapper = new ObjectMapper();
      var body = mapper.createObjectNode()
          .put("connection_id", connectionId)
          .put("client_id", "clid_01ABcDeFgHiJkLmNoPqRsTuV")
          .put("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer")
          .put("client_assertion", jwt.strip());

      var request = HttpRequest.newBuilder(URI.create("https://auth.claude.com/v1/oauth/revoke"))
          .header("content-type", "application/json")
          .timeout(Duration.ofSeconds(10))
          .POST(HttpRequest.BodyPublishers.ofString(body.toString()))
          .build();
      var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
      if (response.statusCode() / 100 != 2) {
          throw new IOException("Revoke failed: " + response.statusCode() + " " + response.body());
      }

      IO.println(mapper.readTree(response.body()).get("revoked_connection_ids"));
  }
  ```

  ```php PHP
  // 고객을 연결할 때 저장한 연결 ID
  $connectionId = 'ocon_01HV9Z';

  $jwt = file_get_contents((string) getenv('CLIENT_ASSERTION_FILE'))
      ?: throw new \RuntimeException('Cannot read the client assertion file');

  $body = json_encode([
      'connection_id' => $connectionId,
      'client_id' => 'clid_01ABcDeFgHiJkLmNoPqRsTuV',
      'client_assertion_type' => 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
      'client_assertion' => trim($jwt),
  ], JSON_THROW_ON_ERROR);

  $context = stream_context_create(['http' => [
      'method' => 'POST',
      'header' => 'content-type: application/json',
      'content' => $body,
      'timeout' => 10,
      'ignore_errors' => true, // keep the body of an error response
  ]]);
  $response = file_get_contents('https://auth.claude.com/v1/oauth/revoke', context: $context);
  $status = http_get_last_response_headers()[0] ?? '';
  if ($response === false || !preg_match('{^HTTP/\S+ 2}', $status)) {
      throw new \RuntimeException("Revoke failed: {$status} {$response}");
  }

  /** @var array{revoked_connection_ids: list<string>} $result */
  $result = json_decode($response, associative: true, flags: JSON_THROW_ON_ERROR);
  echo implode(', ', $result['revoked_connection_ids']), PHP_EOL;
  ```

  ```ruby Ruby
  require "json"
  require "net/http"

  # 고객을 연결할 때 저장한 연결 ID
  connection_id = "ocon_01HV9Z"

  jwt = File.read(ENV.fetch("CLIENT_ASSERTION_FILE"))

  body = {
    connection_id:,
    client_id: "clid_01ABcDeFgHiJkLmNoPqRsTuV",
    client_assertion_type: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    client_assertion: jwt.strip
  }
  response = Net::HTTP.start("auth.claude.com", 443, use_ssl: true, read_timeout: 10) do |http|
    http.post("/v1/oauth/revoke", body.to_json, "content-type" => "application/json")
  end
  raise "Revoke failed: #{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)

  puts(JSON.parse(response.body).fetch("revoked_connection_ids"))
  ```
</CodeGroup>

응답의 `revoked_connection_ids`는 요청이 종료한 연결을 나열합니다. 빈 목록은 종료할 연결을 찾지 못했다는 의미입니다. 일반적으로 연결이 이미 종료되었거나 ID를 알 수 없는 경우입니다. 따라서 `connection_id`를 보내는 요청은 안전하게 반복할 수 있습니다. 확인하려면 [고객이 연결되어 있는지 확인하세요](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/manage-customers#check-a-links-status). 대신 Claude API를 통해 연결을 해제하려면 [Claude API를 통해 연결을 해제하는 경우](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/manage-customers#if-you-unlink-through-the-claude-api)를 참조하세요.

연결을 해제하면 다음이 발생합니다:

* 프로필이 **Unlinked**로 표시됩니다. 연결 해제는 프로필을 삭제하지 않습니다.
* 연결의 OAuth 토큰이 작동을 멈추므로 시크릿 저장소에서 삭제할 수 있습니다.
* 누가 연결을 해제했든, 고객에게 청구되는 새 요청은 일반적으로 약 10초 이내에 중단됩니다. 이미 실행 중인 요청은 완료되고 고객에게 청구됩니다.
* 고객에게 청구하는 요청은 [`403 user_profile_billing_not_authorized`](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/errors#user-profile-billing-not-authorized)를 받습니다. 고객의 액세스 토큰으로 보낸 요청은 대신 [`401 authentication_error`](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/errors#authentication-error)를 받을 수 있습니다.
* 두 경로 중 어느 것으로든 백엔드에서 연결을 해제하면 Anthropic은 고객의 Admin 및 Billing 구성원에게 이메일을 보냅니다. Console에서 연결을 해제하는 경우에는 이메일을 보내지 않습니다. [고객이 받는 이메일](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/what-your-customers-see#emails)을 참조하세요.

[`bill_to: "self"`](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/link-and-bill-a-customer#you-pay)를 사용하여 귀하의 비용으로 고객에게 계속 서비스를 제공할 수 있습니다. Anthropic은 이메일 발송이나 전달을 보장하지 않으므로, 고객의 연결을 해제할 때마다 직접 고객에게 알리세요.

## 고객 다시 연결하기

고객의 연결이 종료된 경우(**Unlinked**), 기존 사용자 프로필로 [고객을 다시 승인 페이지로 보내세요](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/link-and-bill-a-customer#send-them-to-approve). 해제할 연결이 없으며, 새 프로필을 만들면 사용량 기록이 분할됩니다.

연결이 활성 상태인 동안에는 연결에 리프레시 토큰이 있는지에 따라 해야 할 일이 달라집니다. 고객이 `offline_access`를 승인한 경우 리프레시 토큰이 있습니다:

* **연결에 리프레시 토큰이 없는 경우:** 연결을 해제하지 마세요. 동일한 `scope`로 고객을 다시 승인 페이지로 보내면 [새 액세스 토큰을 받습니다](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/link-and-bill-a-customer#if-a-customer-approves-again). 액세스 토큰이 유출된 경우 다시 승인해도 해당 토큰이 해지되지 않으므로 먼저 [고객의 연결을 해제하세요](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/manage-customers#unlink-a-customer).
* **연결에 리프레시 토큰이 있는 경우(분실한 토큰이라도):** 고객의 연결을 해제한 다음, 아래 단계에 설명된 대로 고객이 다시 승인하도록 하세요.

고객의 연결에 리프레시 토큰이 있는 경우, 다음과 같은 상황에서 고객을 다시 연결하세요:

* 갱신이 `invalid_grant`를 반환했거나, 갱신 실패로 인해 해당 고객의 갱신을 중단했습니다. 먼저 [정지 여부와 귀하 측의 원인을 배제하세요](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/credential-for-each-customer#if-a-refresh-fails).
* 리프레시 토큰을 분실했거나, 리프레시 토큰이 유출되었거나, 코드 교환의 응답을 분실했습니다.
* 리프레시 토큰의 1년 만료 기한이 임박했습니다.
* 운영자 서비스 계정을 변경했으며, 이 고객의 OAuth 토큰을 사용합니다.

연결을 통한 청구는 연결 해제 시점부터 새 코드 교환이 성공할 때까지 중단됩니다. 먼저 고객 조직에서 Admin 또는 Billing 역할을 가진 사람과 시간을 합의하세요. 그런 다음:

1. 프로필이 **Linked**로 표시되면 [고객의 연결을 해제하세요](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/manage-customers#unlink-a-customer).
2. 기존 사용자 프로필과 `offline_access`를 포함한 동일한 스코프로 [고객에게 승인 요청 보내기](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/link-and-bill-a-customer#send-them-to-approve)의 단계를 다시 따르세요.
3. 이전 값 대신 새 `connection_id`와 새 OAuth 토큰을 저장하세요. 그러면 프로필이 다시 **Linked**로 표시됩니다.

## 고객을 다른 조직으로 이동하기

고객의 다른 Claude 조직을 통해 청구하려면 고객의 연결을 해제한 후 다시 연결하세요. 연결을 해제하기 전까지 승인 페이지에는 이미 연결된 조직만 표시됩니다. 연결 해제 시점부터 다른 조직에 대한 승인의 코드를 교환할 때까지 고객에게 청구하는 요청은 거부됩니다.

다른 조직에서 Admin 또는 Billing 역할을 가진 사람이 승인할 준비가 되었을 때 시작하세요. 그런 다음:

1. 고객이 이미 [Linked platforms](https://platform.claude.com/linked-platforms) 페이지에서 앱의 연결을 해제하지 않았다면 [고객의 연결을 해제하세요](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/manage-customers#unlink-a-customer).
2. 동일한 사용자 프로필과 스코프로 [고객을 다시 승인 페이지로 보내고](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/link-and-bill-a-customer#send-them-to-approve), 담당자가 다른 조직에 대해 승인하도록 하세요.
3. 이전 값 대신 새 `connection_id`를 저장하고, OAuth 토큰을 사용하는 경우 새 OAuth 토큰도 저장하세요. 그러면 프로필이 다른 조직을 통해 다시 **Linked**로 표시됩니다.

첫 번째 조직의 앱에 대한 지출 한도는 이전되지 않습니다. 다른 조직에 적용되는 한도에 대해서는 [고객에게 표시되는 내용의 지출 한도](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/what-your-customers-see#spend-caps)를 참조하세요.

## 고객을 API 키에서 Linked billing으로 전환하기

고객을 고객 자신의 API 키에서 전환하기 전에 두 가지 비용을 고려하세요:

* **고객에게 청구할 수 없는 항목은 귀하가 지불합니다:** [Message Batches](https://platform.claude.com/docs/ko/build-with-claude/batch-processing), Claude Managed Agents, 청구 가능한 코드 실행.
* **요청이 귀하의 조직에서 실행됩니다:** 귀하의 속도 제한과 데이터 약관이 적용됩니다. 고객의 제로 데이터 보존, 업무 제휴 계약(BAA), 고객 관리형 암호화 키(CMEK), IP 허용 목록은 적용되지 않습니다. [적용되는 약관 및 한도](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing#whose-data-terms-and-rate-limits-apply)를 참조하세요.

고객을 전환하려면:

1. [고객을 연결하고](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/link-and-bill-a-customer), 고객의 `connection_id`를 저장하세요.
2. 고객의 키 대신 운영자 서비스 계정으로 고객의 요청을 청구하고, [`billing_policy`](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/link-and-bill-a-customer#bill-a-request)에 `bill_to: "user_profile"`을 설정하세요.
3. 저장된 API 키를 삭제하고, 삭제했다는 사실을 고객에게 알리세요.

그러면 고객의 요청이 [User profiles](https://platform.claude.com/user-profiles) 페이지에서 해당 프로필의 **Requests**에 추가됩니다. **Your spend**에는 아무것도 추가되지 않습니다.

## 고객 연결 여부 확인 빈도 결정하기

고객은 언제든지 [Linked platforms](https://platform.claude.com/linked-platforms) 페이지에서 앱의 연결을 해제할 수 있으며, Anthropic은 이를 귀하에게 알리지 않습니다. 제품이 이를 언제 파악할지 결정하세요:

* **요청이 거부될 때:** [거부 원인](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/errors#while-billing)을 찾고, [고객이 여전히 연결되어 있는지 확인하세요](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/manage-customers#check-a-links-status).
* **청구하기 전:** 고객이 제품에서 청구가 발생하는 작업을 시작할 때 확인하세요.
* **일정에 따라:** 모든 고객을 확인하고, 누가 연결되어 있는지에 대한 제품의 정보를 최신 상태로 유지하세요.

더 자주 확인할수록 더 많은 요청이 필요하지만 연결 해제를 더 빨리 파악할 수 있습니다.

## 구현 세부 사항, 규칙 및 특수 사례

이 페이지의 나머지 부분에서는 이러한 작업의 기반이 되는 API 세부 사항을 다룹니다. 또한 연결 해제 실패와 같은 특수 사례도 다룹니다.

### Claude API를 통해 연결을 해제하는 경우

대신 Claude API의 연결 해제 엔드포인트를 통해 연결을 해제할 수 있습니다. `oauth_app_id`에 앱의 클라이언트 ID를 담아 `POST /v1/user_profiles/{id}/unlink`로 보내세요. 이는 `user_profile_id`를 사용한 해지 요청과 동일한 연결을 종료합니다.

| 세부 사항 | 해지 요청 | 연결 해제 엔드포인트 |
| ----- | ----- | ----- |
| 호스트 | `auth.claude.com` | `api.anthropic.com` |
| 인증 | 앱의 클라이언트 인증 | 운영자 서비스 계정 |
| 베타 헤더 | 없음 | `user-profiles-search-2026-08-30` |
| 종료 대상 | 연결 하나 또는 프로필에 있는 앱의 모든 연결 | 프로필에 있는 앱의 모든 연결 |

이 샘플에서 `ANTHROPIC_AUTH_TOKEN`은 [고객이 연결되어 있는지 확인하기](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/manage-customers#check-a-links-status)에서와 같이 운영자 서비스 계정의 액세스 토큰을 담고 있습니다.

<CodeGroup exclude="shell:CLI, python, typescript, csharp, go, java, php, ruby">
  ```bash cURL
  curl https://api.anthropic.com/v1/user_profiles/uprof_01HV9Z/unlink \
    -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
    -H "anthropic-version: 2026-10-21" \
    -H "anthropic-beta: user-profiles-search-2026-08-30" \
    -H "content-type: application/json" \
    -d '{"oauth_app_id": "clid_01ABcDeFgHiJkLmNoPqRsTuV"}'
  ```
</CodeGroup>

응답에는 `revoked_connection_ids`가 있으며, 활성 연결이 없었다면 비어 있습니다.

### 연결 해제 엔드포인트가 503을 반환하는 경우

연결 해제 엔드포인트의 `503`은 일부 연결만 종료되었을 수 있음을 의미합니다. 실패한 요청 이전에 저장해 둔 각 `connection_id`에 대해 해지 요청을 보내세요. 이 방법은 언제든지 작동합니다. 남은 연결을 종료하며, 그 이후 고객이 만든 연결에는 영향을 주지 않습니다.

첫 요청 후 하루 이내에는 백오프를 적용하여 연결 해제를 반복하는 방법도 작동하지만, 그 이후 고객이 만든 연결도 종료됩니다. 하루가 지나면 반복 요청이 빈 목록과 함께 `200`을 반환할 수 있습니다. 이러한 나중의 반복 요청은 실패한 요청이 종료한 연결의 남은 부분도 해지하지 않으므로, 해당 연결이 OAuth 토큰이나 청구 액세스를 유지할 수 있습니다.

### 상태 확인 또는 연결 해제 엔드포인트가 요청을 거부하는 경우

| 상태 | 상태 확인 | 연결 해제 엔드포인트 |
| ----- | ----- | ----- |
| `400` | `oauth_app_id`가 클라이언트 ID 형식이 아니거나 베타 헤더가 누락됨 | `oauth_app_id`가 누락되었거나 클라이언트 ID 형식이 아님 |
| `401` | 자격 증명이 누락되었거나 유효하지 않거나, 페더레이션 규칙이 `workspace:developer`를 부여하지 않음 | 동일 |
| `403` | 호출자가 `oauth_app_id`에 있는 앱의 운영자 서비스 계정이 아니거나, 해당 계정의 단일 세션으로 제한된 토큰을 사용함 | 동일 |
| `404` | 사용자 프로필이 존재하지 않음 | 사용자 프로필이 존재하지 않거나 베타 헤더가 누락됨 |
| `503` | 백오프를 적용하여 재시도 | [연결 해제 엔드포인트가 503을 반환하는 경우](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/manage-customers#if-an-unlink-returns-a-503) 참조 |

취소 요청 자체의 오류는 [취소 엔드포인트의 오류](https://platform.claude.com/docs/ko/manage-claude/oauth-apps/endpoints-and-parameters#errors-from-the-revocation-endpoint)에 있습니다.

### 백엔드에서 사용량을 읽는 경우

[Usage and Cost Analytics API](https://platform.claude.com/docs/ko/manage-claude/usage-cost-analytics-api)는 각 사용자 프로필의 사용량을 보고합니다. Console과 마찬가지로 귀하가 지불하는 요청과 고객이 지불하는 요청을 모두 집계합니다.

`org:admin` 스코프를 가진 OAuth 액세스 토큰이나 [Admin API 키](https://platform.claude.com/docs/ko/manage-claude/admin-api#authentication)와 같은 Admin API 자격 증명으로 호출하세요. 운영자 서비스 계정은 사용하지 마세요. 해당 계정의 페더레이션 규칙은 기본적으로 `org:admin`이 아닌 `workspace:developer`를 부여합니다. 해당 스코프는 Admin API 전체를 포괄하므로 `org:admin`을 추가하지 마세요.

각 사용자 프로필에 대해 한 행씩 가져오려면 [사용량 엔드포인트](https://platform.claude.com/docs/ko/manage-claude/usage-cost-analytics-api#usage-endpoint) 또는 [비용 엔드포인트](https://platform.claude.com/docs/ko/manage-claude/usage-cost-analytics-api#cost-endpoint)를 호출하세요. `user_profile_id`만으로 그룹화하고, `time_bucket_width`는 생략하세요. 해당 시간 범위에 사용량이 있는 프로필만 행을 갖습니다. `user_profile_id`가 null인 행에는 프로필을 지정하지 않은 사용량과, 코드 실행 컨테이너 시간처럼 요청 외부에서 측정되는 사용량이 담깁니다.

비용 엔드포인트에서는 두 필드로 누가 지불했는지 알 수 있습니다:

| 필드 | 귀하가 지불하는 요청 | 고객이 지불하는 요청 |
| ----- | ----- | ----- |
| `amount` | 해당 비용, **Your spend**와 동일한 척도 | 0 |
| `list_amount` | 정가 | 정가 |

API에는 누가 지불했는지를 나타내는 필드나 필터가 없습니다. `amount`가 0이고 `list_amount`가 0보다 큰 행은 일반적으로 고객이 전액을 지불했음을 의미합니다. 데이터가 얼마나 늦을 수 있는지는 [데이터 최신성](https://platform.claude.com/docs/ko/manage-claude/usage-cost-analytics-api#data-freshness)을 참조하세요.

### 에이전트용

* `connection_status`가 `null`이거나 인식할 수 없는 `type`인 경우 알 수 없음으로 처리하세요.
* 인식할 수 없는 `last_revoked_reason.type`은 `other`로 처리하세요.

## 다음 단계

<CardGroup cols={1}>
  <Card title="앱 테스트 및 게시" icon="rocket" href="https://platform.claude.com/docs/ko/manage-claude/oauth-apps/linked-billing/test-and-publish">
    테스트 사용자를 추가하고, 앱을 게시하고, 앱을 변경하거나 삭제합니다
  </Card>
</CardGroup>
